This question about Topic Markup Language and applications: Answered
Displaying form at beginning of the topic
I noticed that added forms appear at the end of the topic. However, our main user form has the form at the beginning and topic matter appears after. What is the solution to have the form at the beginning?
- 28 Feb 2012
This is done in the view template for the users, PatternSkinUserViewTemplate
(It might have changed in Foswiki 1.1.4. I'm basing this example on the version shipped in Foswiki 1.1.3).
There are two templates
Only one of which should expand the
template. The below example includes the default
template, and then overrides the form placement templates, inserting the form in
and removing it from
There are a number of ways to accomplish this on other topics. you could use any one of the following:
- Define your own skin. Create MarandolaSkinViewTemplate topic, adjusting the form shown above. And override the skin with
" Set SKIN = marandola,pattern"
- Define your own view template - MarandolaViewTemplate, and apply to a web or individual topics with
" Set VIEW_TEMPLATE = MarandolaView" (Note that the word
Template is omitted)
Or you could apply it automatically based upon the attached form, using the AutoViewTemplatePlugin
for more details.
- 29 Feb 2012
Thanks, George. Works like a charm.
- 01 Mar 2012
| Subject || Topic Markup Language and applications |
| Extension || |
| Version || Foswiki 1.1.4 |
| Status || Answered |
| Related Topics || |