TWikiPreference
WebPreference
TopicPreference
GroupPreference
UserPreference
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"topbarcontents:logo"}%<span id="twikiLogo" class="twikiImage"><a href="%WEBLOGOURL%">
<img src="%WEBLOGOIMG%" border="0" alt="%WEBLOGOALT%" style="border:none;" /></a></span>%TMPL:END%
%TMPL:DEF{"topbarcontents"}%<div class="twikiTop">%TMPL:P{"topbarcontents:logo"}%%TMPL:END%
%TMPL:DEF{"topicactionbuttons"}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='$percntTMPL:P{"action_activatable_edit_or_create"}$percnt' else=""}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='$percntTMPL:P{"action_activatable_attach"}$percnt' else=""}%
%TMPL:P{"action_printable"}%%TMPL:P{"action_revisions"}%
%IF{"$WIKINAME ingroup 'EmployeeGroup'" then='$percntTMPL:P{"action_backlinks_simple"}$percnt' else=""}%
%IF{"$WIKINAME ingroup 'EmployeeGroup'" then='$percntTMPL:P{"action_raw_or_view"}$percnt' else=""}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='$percntTMPL:P{"action_activatable_raw_edit"}$percnt' else=""}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='$percntTMPL:P{"action_activatable_more"}$percnt' else=""}%
%TMPL:END%
%TMPL:DEF{"top:toolbarbuttons"}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='$percntTMPL:P{"activatable_edit_or_create"}$percnt' else=""}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='$percntTMPL:P{"activatable_attach"}$percnt' else=""}%
%TMPL:END%
The Revisions don't work in an IF Statement, though. If anyone firgures that part out, I'd love to see it!
-- JamieBenjamin - 2009-04-09
Can somebody give me a advise, where is this code located? I guess it is the same place, where should be written the command %TMPL:DEF{"viewleftbar"}%%TMPL:END% from the topic TWiki/PatternSkinCustomization#I_want_to_hide_the_left_bar but where is it ??? Thanks Jaromir Houdek
-- JaromirHoudek - 2009-04-24
Jaromir: Per the instructions in PatternSkinCustomization, I created a new template. Then I looked at (but did not modify) the pattern.view.tmpl file to get the syntax and I copied the parts I needed into my new template before making any modifications. When I was finished, I uploaded my new template to the template directory, and changed the WebPreferences to point to mytemplate,pattern.
-- JamieBenjamin - 2009-04-27
Thank you Jamie, I obtained the rights for work inside PC where TWiki is installed and the things improved. The admin rights for TWiki are not sufficient for the page customization
-- JaromirHoudek - 2009-04-28
My question from 4/9/2009 still stands. Anyone know how to restrict view access to the Revision History? Many thanks.
-- JamieBenjamin - 2009-05-11
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!
Best to open a new support question with details.
-- PeterThoeny - 2009-07-05
Reopening this question because my question has not been answered. Why post a new support question and start all over, when the history and context is here? What is the incentive, when you'll most likely close that one too, if no one responds?
Please don't refer me to advertisements. I'm not interested in paying someone to do my work. I'm interested in learning how to do it myself, which is what this forum is for (I thought).
If no one has an answer for me, fine. In the past, I thought about finding some other software package that perhaps would be more user-friendly and have better online support. Perhaps I should consider that again.
Convince me otherwise.
-- JamieBenjamin - 2010-08-11
I finally figured it out! Insert the following in place of
%TMPL:P{"action_revisions"}%
%IF{"$WIKINAME ingroup 'ContributorGroup'" then='[[http://YOURURLHERE/twiki/bin/rdiff/%WEB%/%TOPIC%][History]]: %REVISIONS% <span style="color:#eae2ea;">%VBAR%</span> ' else=""}%
-- JamieBenjamin - 2010-09-14
Thank you Jamie for sharing your solution with the community!
-- PeterThoeny - 2010-09-14