SID-01053: Creating a template with included text from other topics.
| Status: |
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
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.