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 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

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-03-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.