Tags:
create new tag
view all tags

Question

I have a topic which I include in many pages (like TWikiWebsTable). The topic has a dedicated STARTINCLUDE / STOPINCLUDE section and outside this section I would like to have a list where the topic is included. I didn't find a variable dedicated for it so I added the following search:

%SEARCH{"INCLUDE{\"%TOPIC%\"}" regex="on" nosummary="on" nosearch="on" noheader="on" nototal="on" web="all" }% 

The result doesn't look very well and I'm looking for a better solution.

  • TWiki version: 01 Dec 2001
  • Perl version: v5.6.1 built for i586-linux
  • Web server & version:
  • Server OS: i586-linux
  • Web browser & version:
  • Client OS: NT 4.0

-- JoergBieri - 27 Jan 2003

Answer

Maybe FormattedSearch does what you want? Note, that you can put complex search formats into preference variables and reuse them in different topics.

-- PeterKlausner - 05 Mar 2003

You almost got it. Here is an example for the SiteMap, which gets included in some places using command %INCLUDE{"%TWIKIWEB%.SiteMap"}%. The search like this:

TWiki.SiteMap is included by: %SEARCH{"INCLUDE.*?\.SiteMap\"}" regex="on" nosummary="on" nosearch="on" noheader="on" nototal="on" web="all" format="[[$web.$topic]], " }%

returns this:

SiteMap is included by: Codev.ItaTranTextFormattingRules, Codev.ItaTranWelcomeGuest, Codev.ParameterizedIncludes, Codev.SiteMapWithIconLinks, Codev.UsabilityIdeasArchive, Sandbox.QingMaoSandbox, Sandbox.RathnaKalanjiamSandbox, Sandbox.StephanieRichterSandbox, Support.AllPagesUsingIncludedTopic, TWiki.TWikiHistory, TWiki.TWikiVariablesAtoM, TWiki.TWikiVariablesQuickStart, TWiki.VarINCLUDE, TWiki02.IncludeTopicsAndWebPages, TWiki02.TWikiVariables, TWiki02.TWikiWebsTable, TWiki02.TextFormattingRules, TWiki02.WebHome, TWiki02.WelcomeGuest, TWiki03.IncludeTopicsAndWebPages, TWiki03.TWikiVariablesAtoM, TWiki03.TWikiWebsTable, TWiki03.TextFormattingRules, TWiki03.WebHome, TWiki03.WelcomeGuest, TWiki04.TWikiVariablesQuickStart, TWiki04.TWikiWebsTable, TWiki04.VarINCLUDE, TWiki04x01.TWikiVariablesQuickStart, TWiki04x01.TWikiWebsTable, TWiki04x01.VarINCLUDE, TWiki04x02.TWikiWebsTable, TWiki04x02.VarINCLUDE, TWiki04x03.TWikiWebsTable, TWiki04x03.VarINCLUDE, TWiki05x00.TWikiHistory, TWiki05x00.TWikiVariablesQuickStart, TWiki05x00.TWikiWebsTable, TWiki05x00.VarINCLUDE, TWiki05x01.TWikiHistory, TWiki05x01.TWikiVariablesQuickStart, TWiki05x01.VarINCLUDE, TWiki06x00.TWikiHistory, TWiki06x00.TWikiVariablesQuickStart, TWiki06x00.VarINCLUDE, TWiki06x01.TWikiHistory, TWiki06x01.TWikiVariablesQuickStart, TWiki06x01.VarINCLUDE,

-- PeterThoeny - 09 Mar 2003

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2003-03-09 - 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.