r4 - 23 Aug 2005 - 13:27:41 - TravisBarkerYou are here: TWiki >  Codev Web > MultiStartStopIncludes
Tags:
, create new tag

Multiple START and STOP INCLUDES feature needed

-- TerryVBush - 15 Jan 2005

Purpose

  • I find that there are some topics that are so useful that I need to include more than one part of them in other topics.
  • With extensive use of %STARTINCLUDE% and %STOPINCLUDE% including multiple depth includes sometimes I want to include different parts of the same topic in other topics. This works great with automatically generated pages!

Syntax

  • My company is using an older version of TWiki that doesn't have %INCLUDE{"topic" pattern="..."}% . This syntax could be expanded to handle the following featurette. This is different from the "pattern=" syntax above because it would NOT require any of the content of the included topic to remain constant. Just the STARTINCLUDE.

  • Topic1 would have:

%INCLUDE{"topic2" target="INCLBLOCK1"}%

  • Topic2 would have:

%STARTINCLUDE{"INCLBLOCK1"}%
... content ...
%STOPINCLUDE%

  • Topic2 could then also have:

%STARTINCLUDE{"BLOCKINCL2"}%
... content ...
%STOPINCLUDE%

  • Topic3 could have:

%INCLUDE{"topic2" target="BLOCKINCL2"}%

  • Note: I don't often check on this web site. To direct comments or questions about this to me, please send e-mail directly to me. Thanks.

-- VictorPalau - 12 Jan 2005

This topic is duplicating old discussion from NamedIncludeSections

CrawfordCurrie - do you still consider this "low-hanging fruit" (comment made in NamedIncludeSections)?

-- LynnwoodBrown - 18 Jul 2005

I am more interested in something like

%INCLUDE{"SomeTopic" from="#ThisAnchor" to="#OtherAnchor"}%
seems a lot simpler to use.

-- TravisBarker - 23 Aug 2005

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo