Tags:
create new tag
view all tags

Question

I would like to create nested topics in such a manner that I can have different levels of security for different portions of a page.

For example my page might look like this.


The top of my page is one topic and it is editable by admins only.
The bottom of my page is another topic and it is editable by the community at large.

We are running TWiki-4.0.5

Thanks.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Redhat Linux
Web server: Apache
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- JoieySeeley - 09 Mar 2007

Answer

ALERT! 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.

Well, you could use an include with different security for one or both sections. I suspect you'd want the restricted topic to be the 'main' topic; if you went the other way, anyone could edit the user topic and remove the include of the admin topic.

One way to avoid having to set explicit permission in different topics would be to to put the topics in separate webs, where you could set the web permission accordingly. It would depend on wheter it was a bigger pain to manually set permissions on every topic, or to include the references into the proper web. Actually, that scheme would work out better with the user topic as primary, otherwise users would have to remember to type Restricted.TopicName. You might be able to play some tricks with RedirectPlugin

Anyway, a brief example

Admin content
-----
%INCLUDE{"Public.%TOPIC%"}%
or
%INCLUDE{"%TOPIC%Public"}%

You may want something like this in the public page, to save clicking through and then hitting edit:

[[%SCRIPTURL{edit}/%WEB%/%TOPIC%][Edit public content]]

If the basic scheme can be made to work, you might consider TopicCreatePlugin to help out with the sub-pages.

-- JustinLove - 10 Mar 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-04-25 - PeterThoeny
 
  • 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.