Tags:
create new tag
view all tags

SID-00891: Expand INCLUDE content when creating page from template

Status: Answered Answered TWiki version: 4.2.4 Perl version:
Category: CategoryTemplates Server OS: Last update: 15 years ago

I want to expand an INCLUDE when I create a page from a Topic Template.

That is, if the template contains

%INCLUDE{"FooPage" section="export"}%

I want the resulting page to contain the content of section export from FooPage, not the %INCLUDE% command.

I had hoped that type=expandvariables would do the trick but it's copying the INCLUDE line instead of expanding it and copying the content.

Am I doing something wrong?

Or do I need to file a bug report/feature request?

The ability to expand (i.e. copy rather than just "show") INCLUDEd text would be very useful.

-- VickiBrown - 2010-07-08

Discussion and Answer

Did you try to enclose the %INCLUDE{}% in %STARTSECTION{ type="expandvariables" }% ... %ENDSECTION{ type="expandvariables" }% ? See TWikiTemplates - if that does not work it is time to debug.

-- PeterThoeny - 2010-07-09

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2010-09-13

      Change status to:
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.
SupportForm
Status Answered
Title Expand INCLUDE content when creating page from template
SupportCategory CategoryTemplates
TWiki version 4.2.4
Server OS

Web server

Perl version

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