This question about Configuration: Answered

rename WebTopicEditTemplate

Is it possible to rename or replace the WebTopicEditTemplate or assign a specific template to it?

I know how to make my own templates, and in my wiki they are in addition to the standard named like template2, template3, template4. But the first template is always labeled "standard template". How could I fix that?

Lieven - 24 Nov 2021

Unfortunately not: this is hardcoded to Foswiki::UI::Edit. However you can provide a different template as an url parameter to the edit or save link for a new topic as in:

         * Set NEWLINKFORMAT = <a class="foswikiNewLink" href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%ENCODE{"%WEB%.%TOPIC%"}%&templatetopic=MyNewTopicTemplate" rel="nofollow" title="%MAKETEXT{"Create this topic"}%">$text</a>

-- MichaelDaum - 24 Nov 2021
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r2 - 24 Nov 2021, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy