Tags:
create new tag
view all tags

SID-01851: Partially read-only topic? Read-only sections?

Status: Answered 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

      Change status to:
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.
SupportForm
Status Answered
Title Partially read-only topic? Read-only sections?
SupportCategory CategoryAccessControl
TWiki version 6.0.0
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2014-01-07 - 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.