Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- PankajPant - 31 Mar 2006

Answer

ALERT! 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 smile

-- 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 frown

-- 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

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2012-09-12 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.