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
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