This question about Using an extension: Answered

Cannot use templates on new page creation

Hello, first I want to thank you all for this awesome project. I have slightly long story, please bear with me.

I've just upgraded my installation from 2.1.2 to 2.1.6, then updated all the plugins. But now I'm struggling with NatSkin.

I have a webspace named CompanyManuals, I want any new topic to follow a specific format/template so I created CompanyManuals.WebTopicEditTemplate

Now, the this particular WebTopicEditTemplate has a document form attached to it, in my case: Main.DocumentControlForm

The problem is, when I click the NEW button (to create a new page), in the popup dialog does not have the TITLE field to fill-in, thus giving error when I click CREATE

A workaround that I've found was to remove the FORM from CompanyManuals.WebTopicEditTemplate

Another workaround is to add the field | TopicTitle | text | 75 | | in my Main.DocumentControlForm

Adding the TopicTitle field to my custom form would be the solution to my first problem.

My second problem is I cannot choose another template from my webspace during topic creation.

On each of my webspace I have SystemDesignTemplate and ProcedureTemplate. Thoses are not showing up using NatSkin whenever I click NEW.


Update:

To sumarize I had two issues:

  1. The TopicTittle input field was not showing under two conditions
    • when creating a new topic
    • and WebTopicEditTemplate has an attached form. (Either removing the form or adding TopicTitle to the form would solve the issue)
  2. The template topic list was not showing when creating a new topic. Whenever you create a topic ending in the word "Template", it is automatically added to the list of available template topics in the "Use Template" drop down field on the WebCreateNewTopic page.

After diggin around I found a temporary solution to my second problem which at the same time solves my first issue (no need to workaround). I had to copy the old version of newtopic.nat.tmpl provided in the upgrade package.

cp ./templates/newtopic.old.tmpl ./templates/newtopic.nat.tmpl

I came to this conclusion after reading:

-- AlexAnder - 09 Jan 2019

It sounds like you have solved this question on your own. I'm setting status of question to "Answered". If I'm wrong, feel free to re-open the status and add additional points to be clarified.

-- Main.LynnwoodBrown - 09 Jan 2019 - 19:49

 

QuestionForm edit

Subject Using an extension
Extension NatSkin
Version Foswiki 2.1.6
Status Answered
Related Topics
Topic revision: r3 - 09 Jan 2019, LynnwoodBrown
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