Tags:
create new tag
view all tags

Question

The "standard" (default) for most pages with an attached form is to show the form at the bottom of the age.

However, a user's TWiki "home" page shows the form at the top.

Is there a convenient way that a user can specify where to show the form on a given pge?

Some of the people where I work think it would be neat to have the form at the top. I, on the other hand, would fight hard against any such change to the underlying templates! I want the form at the bottom!

Can we all be happy?

Is there a variable we can set, or a TWiki-page template we can edit that would change things on a per-page or per-web basis?

I found ForceFormToBeAtTheBeginningOfTopic and I already know about templates/view.pattern.tmpl - I do NOT want a server-side solution. NO covers; no skin customizations; no changes to files in the templates/ dir.

I found Support/HowToMoveUserFormBox but the answer is not generalizable; it only applies to the User View Template.

Environment

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

-- VickiBrown - 05 Mar 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.

I think I have figured it out.

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

-- VickiBrown - 05 Mar 2008

To hide the setting from the edit screen, go to the "more topic actions" screen, then follow the "edit topic preferences" link, and set the preferences bullet there.

-- PeterThoeny - 06 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-06 - 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.