I created an application for a client. It's a modification of the TWiki FAQ app, using a form and a template.
The template topic content is:
%STARTSECTION{type="templateonly"}%
---+ %SPACEOUT{%TOPIC%}%
This is the template used by the FAQ application.
%RED% Use caution in modifying this template. The FAQ application "knows" how it is structured". %ENDCOLOR%
%ENDSECTION{type="templateonly"}%
---+ %WEB% FAQ
---+++++ Back to: %URLPARAM{"topicparent"}%
<!-- The FAQ question is automatically filled by the value in the form, below. Do not edit. -->
---++ FAQ: %FORMFIELD{"FAQuestion"}%
---++ Answer:
-----
%COMMENT%
The app calls the template via a form:
<form action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%"}%/">
<input type="hidden" name="topic" value="FAQTopicAUTOINC0000" />
<input type="hidden" name="templatetopic" value="%TOPIC%Template" />
...
When the user tested from IE on Windows Vista, this is what he saw after the template was copied and presented for editing:
It looks as if "something" has removed all of the linefeeds from the template.
--
TWiki:Main/VickiBrown
- 2013-03-12