We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>TemplatesAndFORMFIELDS (02 Mar 2008, PeterThoeny)
Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x01
TWiki plugins:  
Server OS: Ubuntu-Server 7.10 Gutsy Gibbon - Release i386 (20071016)
Web server:  
Perl version: 5.8.8
Client OS:  
Web Browser:  
Categories: Forms

-- EaCohen - 07 Jan 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r2 - 02 Mar 2008 - 00:30:06 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback