SID-01851: Partially read-only topic? Read-only sections?
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
|
| Category: |
CategoryAccessControl |
Server OS: |
|
Last update: |
12 years ago |
Good Morning!
I'm looking for a method to achieve this: On every page I need a different static, fixed, r/o part and a normal part which can be edited. The topic name should be read only two.
Ideas I have:
- make certain section r/o to certain users
- my favorite: get the r/o part from a database and just display it in a certain spot of the topic page
- Include a r/o topic into a r/w topic
Does anyone know of Plugins or methods to achive one of these ideas?
Greetings,
Karsten
--
Karsten Priegnitz - 2014-01-06
Discussion and Answer
See
VarINCLUDE to include another topic into the current topic. The included topic can be access restricted, see
TWikiAccessControl.
You can also define variables and use them with parameters, see
ParameterizedVariables.
Use
VarSEARCH to query data within TWiki and display in a topic.
There are many plugins that allow you to pull in dynamic data, see
Extensions:import
--
Peter Thoeny - 2014-01-06
just to share the knowledge: I IRC'd with Peter and he said this - which works:
- you can hide this in a header or footer
- and use a specific view template to include the header or footer
- study http://twiki.org/cgi-bin/view/TWiki/TWikiTemplates
- several ways to do that
- here is one
- create a MyHeader topic
- it contains all content you want to display in the header
- create a MyViewTemplate topic with this content:
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"formtop"}%%INCLUDE{MyHeader}%%TMPL:END%
- now you need to activate that view template on the topic
- best to do on template topic, so each time a new topic is created, it inherits this view template
- to activate the view template go to more topic actions, edit topic preferences, and add this bullet:
* Set VIEW_TEMPLATE = MyView
--
Karsten Priegnitz - 2014-01-06
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.