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