Question
Can someone help me with this issue? I have a status report rollup tool that works like this:
- Each contributor adds their report to their personal report pages, delimited with <cycle> </cycle> tags, where
cycle is the week/month indicator.
- The rollup page dynamically includes the requested report from each controbutor and displays then.
All this is done using include regexps, forms and spreadsheet magic and works extremely well. Today I had a request that the people who were responsible for rolling up the next level reports would like to see the unrendered contributor reports to facilitate cut/paste.
The simplest way to do it would be to add verbatim tags around the reports, but doing so prevents the CALC from being evaluated.
Any suggestions on how to conditionally add verbatim tags around a bunch of text? Or other ways to solve my problem?
PS: I plan to post this tool as an add-on at some point ... ust not getting the time.
Thanks.
Environment
--
PankajPant - 31 Mar 2006
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.
OK ... I found a new parameter
raw=on in Dakar (
VarINCLUDE). The doc says:
If you prefer to include exactly what is in the
source of the originating page set this to on.
Does this do what I want, and if so would it be easy to patch Cairo?
--
PankajPant - 03 Apr 2006
i'm pretty certain that
raw=on is in Cario - so yep
--
SvenDowideit - 18 Apr 2006
in cairo, you can use
skin=text;raw=on (or
skin=text;raw=debug to get all of the metadata, too)
IncludeVerbatim?skin=text;raw=on
IncludeVerbatim?skin=text;raw=debug
--
WillNorris - 18 Apr 2006
You might be able to do what you want using
FormattedSearch, see $pattern(reg-exp).
It's more complicated to set up but it probably has the functionality you need.
--
SamHasler - 18 Apr 2006
dammit, we all forgot to show an eg?
%!INCLUDE{"http://twiki.org/cgi-bin/view/Support/IncludeVerbatim?skin=text;raw=on"}%
except that it does not work on tiwki.org due to a security fix done to reduce the chance of infinite loops in INCLUDES
--
SvenDowideit - 18 Apr 2006
Hear's an example that shows links to three TWiki Tip topics using the first header from each topic as the link text.
%SEARCH{ "^TWiki[Custom]*Tip[0-9A-Z]" web="TWiki" scope="topic" regex="on" nosearch="on" nototal="on" limit="3" format="[[%SCRIPTURL%/view%SCRIPTSUFFIX%/$web/$topic][$pattern(.*?\-\-\-\+([^\n\r]+).*)]]
"}%
The Jump Box as a browser
WebChanges to see recent activity
Raw Text link
And here it is again verbatim.
%SEARCH{ "^TWiki[Custom]*Tip[0-9A-Z]" web="TWiki" scope="topic" regex="on" nosearch="on" nototal="on" limit="3" format="$n()<verbatim>$n() [[%SCRIPTURL%/view%SCRIPTSUFFIX%/$web/$topic][$pattern(.*?\-\-\-\+([^\n\r]+).*)]]
$n()</verbatim>$n()"}%
$n() [[%SCRIPTURL%/view%SCRIPTSUFFIX%/$web/$topic][$pattern(.*?\-\-\-\+([^\n\r]+).*)]]<BR />$n()
Your pattern reg-exp will obviously have to be different to pick up what's between your cycle tags.
--
SamHasler - 18 Apr 2006