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