Tags:
create new tag
view all tags

Response

Thanks Peter. This is a good response and solves my problem. I just might take this opportunity to encourage you to continue your good work on Twiki - it's a fine piece of software and is going to have a big impact within the Consulting organisation that I work for - we're all distributed around the Asia-Pac region and really need a good tool to assist us with online collaboration. Twiki certainly fits the bill and is the best tool we have seen so far...

Cheers, Mark

Question

I have a "topic template" I am using to create a topic (a-la ChangeRequest demo). I am using ALLOWTOPICCHANGE settings in the template to prevent non-admins from changing the template, but I want to permit a slightly wider group to modify/edit the resulting topic. I have two groups set up (Main.AdminGroup and Main.GruntGroup). Admins can modify the topic templates, and grunts can modify the resulting topics. General public can only view...

Ideally I would like to change ALLOWTOPICCHANGE as the topic is created from the template, but can't seem to figure out how best to do this. I need to leave Set ALLOWTOPICCHANGE=AdminGroup on my TopicTemplate I guess...

Environment

TWiki version: TWikiRelease01Feb2003

-- MarkEdwards - 19 Jan 2004

Answer

The trick is to use %NOP% and %NOP{ ... }% in your template topic to define different access controls.

Write this in your template topic in order to restrict access to the template topic to the MySmallGroup, and to restrict access to instantiated topics to the MyBiggerGroup:

   * Set ALLOW%NOP%TOPICCHANGE = Main.MyBiggerGroup
%NOP{
   * Set ALLOWTOPICCHANGE = Main.MySmallGroup
}%

The first %NOP% embedded in the ALLOWTOPICCHANGE escapes the access setting; it gets removed when you instantiate a topic based on the template.

The text between %NOP{ and }% defines the access control of the template topic. All text from %NOP{ to }% gets removed when you instantiate a topic based on the template.

See related ExpandVariablesInEditTemplateTopic

-- PeterThoeny - 27 Jan 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-01-27 - MarkEdwards
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.