Question
Where I work, there is a PHP script that accesses data in Bugzilla. Given the appropriate parameters, it will emit this data as HTML text.
I can present the results in a TWiki page, using INCLUDE or an iframe. However, I'd like to access the results as data in my TWiki page (e.g., set a TWiki variable to the contents).
Is this possible (without admin access to the server)?
To try to be more specific, what I have now is the following:
For example, given:
<iframe src="http://foo.host.domain/fieldinfo.php?projectid=%FORMFIELD{"ProjectID" }%&fieldids=1,12,7"></iframe>
I get this (screenshot)
What I would like is to be able to hand the php script the correct parameters to have it return, say, the date value "4/30/2007" without the surrounding table chrome. I want to be able to use that value in my TWiki page, e.g. set a variable to the returned data and then use that variable, push it into a form field, display it in my own table cell with my own formatting, etc. I want to be able to control the presentation of the data.
Environment
--
VickiBrown - 02 May 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
although neither of these plugins have been ported to twiki-4, you might like to look at
BugzillaQueryPlugin and
BugzillaLinkPlugin.
I don't think there is a
pattern() (from
FormattedSearch) like syntax for INCLUDE, Peter will probably have a way to get a value using a combination of INCLUDE and
SpreadSheetPlugin
--
SvenDowideit - 02 May 2007
Actually, there is a pattern syntax on INCLUDE, and it appears to be in the 4.0 series:
TWiki04.TWikiVariables#INCLUDE_page_include_other_topic I used it to drop the page framework from our ISP's network status page, since their external connection has hiccups now and then.
--
JustinLove - 04 May 2007
Vicki - I presume you've found a way? re-open if not - though I would like to hear how you solved this.
--
SvenDowideit - 02 Jun 2007
Couldn't you use something like this:
- Set FILECONTENTS = %INCLUDE{"http://foo.host.domain/fieldinfo.php?projectid=%FORMFIELD{"ProjectID" }%&fieldids=1,12,7"}%
--
JosephCrawford - 2011-11-03
This works here:
<iframe src="http://www.random.org/widgets/integers/iframe.php?title=Volunteer+Picker&buttontxt=And+the+winner+is...&width=160&height=200&border=on&bgcolor=%23FFFFFF&txtcolor=%23777777&altbgcolor=%23CCCCFF&alttxtcolor=%23000000&defaultmin=1&defaultmax=5&fixed=off" longdesc="http://www.random.org/integers/" scrolling="no" width="160" frameborder="0" height="200"> The numbers generated by this widget come from RANDOM.ORG's true random number generator. </iframe>
and produces this:
However, it's stopped showing anything on my twiki page on our internal twiki installation. Not sure what broke it.
-- Iain Woolf - 10 Sep 2013
--
Iain Woolf - 2013-09-10
Not sure. The browser loads the iframe content, so this does not go via the TWiki server. Can you access the random.org website directly? Look also at the HTML source of the generated TWiki page.
--
Peter Thoeny - 2013-09-10