Tags:
create new tag
, view all tags

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

 
Topic revision: r4 - 2005-08-23 - TravisBarker
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.