Tags:
create new tag
, view all tags

Question

Might be a simple question, but my digging around hasn't helped me figure out the answer.

I've set up and used several forms and mostly understand them now.

What I want to try to do tho is control if possible the format of the displayed meta data when the form contents are rendered on a topic page.

For example, how is the WebTopic form at the bottom of this page formated? Can I change that?

I'm also curious about the attributes of the various form fields. Looking at the raw meta data I see that each field has an attribute called "title". This seems to be just a dupe of the field name. But is there any way in the form itself to specify the title as something different? And back to my previous question, can I format the display of the form to show the title instead of the name?

Thanks, -James

Environment

TWiki version: TWikiRelease01Dec2001
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Forms

-- JamesHaddock - 26 May 2005

Answer

At this time there is no fine control over the rendering of TWikiForms.

You can place the form somewhere else than at the bottom: The form gets rendered by the %META{"form"}% variable located in the view.tmpl (or one of the skin equivalents). Edit the template and change the sequence. Default:

%TEXT%
%META{"form"}%
%META{"attachments"}%

The name and title parameters are identical if the form field name is a WikiWord. The name parameter is the "clean" version of the title parameter, e.g. a title="Field Name with @ _ / Special Chars" has a name="FieldNamewithSpecialChars".

-- PeterThoeny - 30 May 2005

 
Topic revision: r2 - 2005-05-30 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.