This question about Topic Markup Language and applications: Answered

Creating auto updating templates


Is there any way to create a template that updates all existing pages that use that template?

For Ex.

I have a template called 123

And I have 1000 pages that use template 123

Is there any way to update all pages that use template 123 at once?

-- AmirMemarian - 08 May 2019

That's what view templates are for: they define the look of all topics that have it applied to.

Say you created a view template called MySpecialViewTemplate and there are topics that have the preference setting

   * Set VIEW_TEMPLATE = MySpecialViewTemplate

then the settings in this view template will be applied automatically. All changes to MySpecialViewTemplate will be displayed on all topics using that view immediately.

A typical view template starts like this


hello world

Replace "hello world" with whatever you'd like to display at the top. Test the the view template like this


See more at SkinTemplates.

-- MichaelDaum - 08 May 2019

Thanks Michael,

We have a form with information. As below

Name Type Size Values Description Attributes Default
1 text 60        
2 select 1 Asked,More info required,Answered Mandatory status M Asked
3 select 1 Version in SVN,Foswiki 1.1.4,Foswiki 1.1.3,Foswiki 1.1.2,Foswiki 1.1.1      
4 text 15 07:00-20:00      
5 text 200 test   M  
6 text 100        
7 text 60 test@test   M test@test
8 text 60        
9 text 60        
10 text 60        
11 text 60        
12 text 60        
13 text 60        
14 text 60        
15 text 60        

The problem is that I want to get the value for field 4 (07:00 - 20:00) but it does not work..... What I use in order to get the value is Time: FORMFIELD{"4"} (removed %) but it's showing me the old value.

So for example when I created the form for the first time the value for field 4 was "07:00 - 18:00" then I've changed the value to 07:00 - 20:00 but the value I get is still "07:00 - 18:00" when I use  Time: FORMFIELD{"4"} (removed %)

*Sorry for my English, hope you understand what I mean*

Is there any way the get the last value every time someone updates the form?

-- AmirMemarian - 09 May 2019

VarFORMFIELD should always fetch the latest value. There is a rev parameter to get a previous one. Not sure what's wrong in your setup. Maybe it is the odd formfield names?

-- MichaelDaum - 09 May 2019

QuestionForm edit

Subject Topic Markup Language and applications
Status Answered
Related Topics
Topic revision: r5 - 09 May 2019, MichaelDaum - This page was cached on 14 Dec 2019 - 20:01.

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