SID-01840: Skin overwrite WebTopicViewTemplate
Status: |
Unanswered |
TWiki version: |
5.1.4 |
Perl version: |
|
Category: |
CategoryTemplates |
Server OS: |
Linux |
Last update: |
8 years ago |
Hello,
I would like to know, if it is possible to change the skin when loading the "WebTopicViewTemplate" and . Particularly, I don’t want the edit and attach buttons to be shown.
I have tied to make a skin overwrite adding "Set SKIN" in the Template page, but this impacts only the template page itself.
Thank you in advance!
BR
--
Oleg Danilov - 2013-12-09
Discussion and Answer
It looks like you want to prevent users from creating new topics via Jump box? That needs some design and implementation work. You could study the docs and code, and implement it, or you could
hire a TWiki consultant to do that for you.
--
Peter Thoeny - 2013-12-09
Hello Peter,
thank you for the fast reply. No, it is not exactly what I want to do. I like the idea of creating new topics via jump box. I just want to prevent that the user can execute the edit script using the edit button (1) being on a page which is based on the
WebTopicViewTemplate as shown on the screen shot below and link to a page based on the
WebCreateNewTopic (2) should be the sole option for the user on that page to process with topic creation.
I know how to adjust the required templates, but I fail to define a specific view template for the page based on the
WebTopicViewTemplate.
In my current workaround I hide the buttons with a CSS class which is passed to the appro-priate html element via a custom variable.
Example:
<verbatim><div class= “%MYVAR%”> ... </div> </verbatim
and in the topic I set the variable to class that does the job:
<verbatim> * Set MYVAR = hidden </verbatim>
It works well also for other element giving me more layout flexibility.
I would like to know if it is possible and how to call another view.tmlp on a page based on the
WebTopicViewTemplate?
BR
Oleg
--
Oleg Danilov - 2013-12-10
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
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.