Tags:
create new tag
view all tags

SID-01053: Creating a template with included text from other topics.

Status: Unanswered Unanswered TWiki version: 5.0.0 Perl version: perl 5.8.8 x86_64
Category: CategoryTemplates Server OS: cent0S 5.3 Linux 2.6.18 64bit Last update: 14 years ago

Is it possible to use the %TMPL:INCLUDE{"name"}% variables in a template topic?

I would like to create an EmployeeTemplate that is a profile of an individual. In a separate topic named QuestionTemplate I have a table with questions and %CLI% items. I would like to insert the raw text into the EmployeeTemplate before variable expansion. I tried %INCLUDE{}% . But to get that to work, you have to surround it with %STARTSECTION{type="expandvariables"}% . This then expands the %CLI% and %EDITTABLE%_vars and creates an _HTML mess.

So I though that I could use the TMPL vars to include the text, which is what they are used for in the tmpl files. I tried to put it in the raw text, but %TMPL:INCLUDE{"Question"}% does not expand and is displayed as text.

Is what I am trying to do possible? How do I prevent the expansion of the variables with out disabling them?

Thanks

-- ScottGutman - 2010-12-09

Discussion and Answer

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 - 2011-05-02

      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 Unanswered
Title Creating a template with included text from other topics.
SupportCategory CategoryTemplates
TWiki version 5.0.0
Server OS cent0S 5.3 Linux 2.6.18 64bit
Web server Apache 2.2.3
Perl version perl 5.8.8 x86_64
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2011-05-02 - 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.