Kook: hello? ***: ChanServ sets mode: +o PeterThoeny koem: Good Morning!
Is there a possibility to make certain sections of a twiki read-only? On every page I need a different static, fixed, r/o part and a part which can be edited.
Best would be to make some section of the topic only editable by a certain group of users... ***: koem has left "Ex-Chat" TerjeAndersen: koem: you could split the part of the topic out into another topic, put " * Set ALLOWTOPICCHANGE = group" in that topics settings, and include it from the "master topic" ***: ChanServ sets mode: +o PeterThoeny
ChanServ sets mode: +o PeterThoeny koem: PeterThoeny, hello! PeterThoeny: hi koem koem: you just answered my question http://twiki.org/cgi-bin/view/Support/SID-01851
I have a follow up question
I think the DatabasePlugin is a good way to start. I could use change it to my needs.
But: if I include a tag like %DATABASE_SQL{description="table_description" sql="sql"}% into every of my topics that need to display some r/o data ... can't everyone change it? I mean can't anyone delete it and then the data is not displayed anymore? PeterThoeny: yes, if you put this into the topic text
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 koem: ah, ok - I want it to be displayed right above the content of the topic. So I change view.tmpl and add a def above content? PeterThoeny: 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 MyViewTemplateTopic 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:
* Set VIEW_TEMPLATE = MyView
correction, the "create a MyViewTemplateTopic with …" should be: "create a MyViewTemplate topic with ..." koem: uff, thanks - I will try that ....