Tags:
create new tag
view all tags

SID-01840: Skin overwrite WebTopicViewTemplate

Status: Unanswered 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.

2013-12-10_115057.png

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

      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 Unanswered
Title Skin overwrite WebTopicViewTemplate
SupportCategory CategoryTemplates
TWiki version 5.1.4
Server OS Linux
Web server Apache
Perl version

Browser & version

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng 2013-12-10_115057.png r1 manage 62.0 K 2013-12-10 - 14:29 UnknownUser screen shot
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2015-12-03 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.