Question
Templates -- how does %FORMFIELDS% work?
From what I can see, every Edit template uses %FORMFIELDS% to generate the form attached to the topic, or to generate the "Add form" link if there is no form.
Where is %FORMFIELDS% defined and expanded? Using grep, I can't find any template that expands it. Is it in the Perl code, for instance in Edit.pm?
What I want to do is put the table showing form values within a Twisty, but only generate the Twisty if there is an attached form. It looks like I need to get inside of %FORMFIELDS% to do this.
Any explanations are appreciated, thanks to all,
Environment
--
EaCohen - 07 Jan 2008
Answer
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.
You can define a custom template where you have control over the layout of body text, attachment table and form. See
TWikiTemplates. See user homepages as an example.
--
PeterThoeny - 02 Mar 2008