Tags:
create new tag
, view all tags
ALERT! NOTE: This is a SupplementalDocument topic which is not included with the official TWiki distribution. Please help maintain high quality documentation by fixing any errors or incomplete content. Put questions and suggestions concerning the documentation of this topic in the comments section below! Use the Support web for problems you are having using TWiki.

FAQ:

How do I move the form to the top of the page?

Answer:

There are several different ways to implement this change.

Globally via Skin Template

The easiest way to do this is to define a new TWiki skin that has the form before the text, instead of after it. The easiest way to define a new skin is to derive your new skin from an existing skin. In the following we will derive a new skin topform from the pattern skin. This is specific to TWiki 4.0 and later.

For information on how to create a custom template, read PatternSkinCustomization first.

Alternative: No Server-side customization needed

User Pages

You can modify the look of the TWIki user pages (in the Main web) without editing the back-end template files. Change Main.PatternSkinUserViewTemplate or Main.UserViewTemplate. See Support.HowToMoveUserFormBox for details.

Other Pages

Make a page, Main.TopFormViewTemplate, that contains the following code:

%TMPL:INCLUDE{"view"}%

%TMPL:DEF{"form"}%%META{"form"}%%TMPL:END%
%TMPL:DEF{"formattop"}%%TMPL:P{"form"}%%TMPL:END%
%TMPL:DEF{"formatbottom"}%%TMPL:END%

To use, add the following to any other page

<!--
   * Set VIEW_TEMPLATE = Main.TopFormViewTemplate
-->

Alternatively, to have the setting out of the way, you can define the bullet in the topic preferences (follow the "Edit topic preference settings" link in the "More topic actions" screen.)

Back to: TWikiFAQ

-- Contributors: CrawfordCurrie, PeterThoeny, ArthurClemens, VickiBrown



Comments & Questions about this Supplemental Document Topic

I escaped the SKIN setting, converted the topic to the actual FAQ format so that TWikiFAQ can pick it up, and added the standard SupplementalDocument header and footer.

-- PeterThoeny - 23 Feb 2006

Thanks Peter. Any chance we can get these formats documented somewhere; or even better, a TWikiApplication for adding such FAQs? At the moment they are splattered over TWiki, Codev and Support webs, and I always have trouble knowing where to move them.

-- CrawfordCurrie - 12 Mar 2006

When you create a new FAQ at TWikiFAQ it should have the proper format. Actually, it was missing the SupplementalDocument header and footer, which I added.

-- PeterThoeny - 12 Mar 2006

I have updated the FAQ text with the latest pattern skin documentation.

-- ArthurClemens - 15 Apr 2007

Addon HowToMoveTheFormToTheTopOfTheEditPage :

Made with the alternative variant (No Server-side customization needed):
Create following page: ( Main.TopFormEditTemplate )

TWiki 4.2.0:

%TMPL:INCLUDE{"edit"}%

%TMPL:DEF{"formtop"}%%TMPL:P{"form"}%%TMPL:END%
%TMPL:DEF{"formbottom"}%%TMPL:END%

or TWiki 4.1.2:

%TMPL:INCLUDE{"edit"}%

%TMPL:DEF{"form"}%%META{"form"}%%TMPL:END%
%TMPL:DEF{"formattop"}%%TMPL:P{"form"}%%TMPL:END%
%TMPL:DEF{"formatbottom"}%%TMPL:END%

and add to any other page:
<!--
   * Local EDIT_TEMPLATE = Main.TopFormEditTemplate
-->

(use Local instead of Set, why, read lexical scope definition in twiki)

-- SaschaVetter - 01 Aug 2008

Is there any way to set this at web level, I am generating a page with an attahced form (with auto incrementing page name) and even though my template page and form page have "* Local EDIT_TEMPLATE = TopFormEditTemplate" set, it ignores it and puts the form at the bottom. If I add it to a static page it works fine ... Im wondering if applying this at web level would make this work

-- GaryBrett - 2011-08-11

Please ask support questions in the Support web.

-- PeterThoeny - 2011-08-12

Please use the Support forum if you have questions about TWiki features. This comment section is about the documentation of this topic.
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2011-08-12 - 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.