Skip to content

Commit

Permalink
Item11383: Examples are not quite correct
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@13496 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Dec 21, 2011
1 parent 80410ad commit c27a37b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PatternSkin/data/System/PatternSkinCustomization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Let's say you want to simplify the bottom toolbar and remove all links except fo
1 In =view.myskin.tmpl= you write:
<verbatim class="tml">
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"top:topicactionbuttons"}%%TMPL:P{"more_link"}%%TMPL:END%</verbatim>
%TMPL:DEF{"topicactionbuttons"}%%TMPL:P{"more_link"}%%TMPL:END%</verbatim>
1 For testing, view any topic and append to the topic name: =?cover=myskin=. You should see an effect now.
1 To make the changes visible on all pages, go to [[%USERSWEB%.SitePreferences]] (to keep %WIKIPREFSTOPIC% intact) and write:
<pre class="tml">
Expand All @@ -57,10 +57,11 @@ Call this template by setting =VIEW_TEMPLATE=:
* Note that you don't use the =Template= extension now
* You can make this setting hidden by writing this in the Settings screen: go to More and then Topic Settings

We can use the same example as above. In the topic you want to use as view template, for instance =<nop>OnlyMoreView=, write:
We can use the same example as above, but extend it to also replace the Edit and Print buttons at the top with a _More Actions_ button. In the topic you want to use as view template, for instance =<nop>OnlyMoreView=, write:
<verbatim class="tml">
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"top:toolbarbuttons"}%%TMPL:P{"more_link"}%%TMPL:END%
%TMPL:DEF{"topicactionbuttons"}%%TMPL:P{"more_link"}%%TMPL:END%
</verbatim>

You can also test this by appending =?template=OnlyMoreView= to the url.
Expand Down

0 comments on commit c27a37b

Please sign in to comment.