SID-01059: Set preferences for a group of topics.
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
|
| Category: |
CategoryAccessControl |
Server OS: |
|
Last update: |
15 years ago |
Not sure I have this in the correct category.
I want to set the same preferences for a group of topics. I have preferences stored in a topic called testpage. I want several topics to use those preferences without having to manually add (or edit) the preferences to each topic.
I can't change the preferences at the Web level, and I want these topics to be distinct in appearance from other topics in the Web.
I added all the preferences to testpage via More topic actions. I also typed the preferences into testpage, so they are visible as text in edit mode, but not in view topic mode.
The problem is that I don't know how to reference testpage in the other topics to get those topics to use the variables I stored in testpage.
I thought I should set a topic level variable in each topic that will load the preferences from testpage. But I don't know what variable to set, or if that is even the right way to go.
Thanks for your advice.
--
DeanCloutier - 2010-12-17
Discussion and Answer
Create new pages using your testpage as the template. This will copy all content, including preferences settings. You can build an HTML form that asks for the topic name of new topics; the form can list the
topicparent as a hidden field. More at
TWikiTemplates,
TWikiScripts.
--
PeterThoeny - 2010-12-19
Yes, I am currently using the template method you suggest to create new topics. Although your prompt to view more information let me find the templateonly section type. This is much neater.
However, I was hoping to manage the preferences more like a style sheet or an include variable; so that if I needed to edit them or add a few, then those changes would be implemented across all topics that used those prefs.
--
DeanCloutier - 2010-12-20
I can see that this could be useful. Sorry, that is currently not supported.
--
PeterThoeny - 2010-12-20
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.