Skip to content

Commit

Permalink
Item2404: remove bogus info on setting view template on topic creatio…
Browse files Browse the repository at this point in the history
…n (thanks MartinKaufmann)

git-svn-id: http://svn.foswiki.org/branches/Release01x00@5649 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Nov 25, 2009
1 parent 6cf094f commit b215377
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions PatternSkin/data/System/PatternSkinCustomization.txt
@@ -1,6 +1,5 @@
%META:TOPICINFO{author="ProjectContributor" date="1130019100" format="1.1" version="$Rev$"}%
%META:TOPICPARENT{name="PatternSkin"}%

---+!! %SYSTEMWEB%.PatternSkin Customization

*Guidelines how to create and customize page templates.* For styling your Foswiki using stylesheets, see PatternSkinCssCookbook.
Expand Down Expand Up @@ -51,7 +50,7 @@ Test by appending =?cover=myskin= to the url.
#TopicTemplates
---+++ The topic template approach (using VIEW_TEMPLATE)

Template overrides can be written in a topic, a so-called _topic template_. Topic template names end with =Template=, for instance =BlogPostViewTemplate=.
Template overrides can be written in a topic, a so-called _topic template_. Topic template names end with =<nop>ViewTemplate=, for instance =BlogPostViewTemplate=.

Call this template by setting =VIEW_TEMPLATE=:
<blockquote>
Expand All @@ -61,20 +60,16 @@ Call this template by setting =VIEW_TEMPLATE=:
</blockquote>
* 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
* On topic creation you can set the topic template by passing =templatetopic=:
<verbatim>
<input type="hidden" name="templatetopic" value="BlogPostViewTemplate" />
</verbatim>

We can use the same example as above. In a topic write:
We can use the same example as above. In the topic you want to use as view template, for instance =<nop>OnlyMoreView=, write:
<blockquote>
<verbatim>
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"top:toolbarbuttons"}%%TMPL:P{"more_link"}%%TMPL:END%
</verbatim>
</blockquote>

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

---++ Reference: pattern skin template INCLUDE tree

Expand Down Expand Up @@ -144,7 +139,6 @@ Change the table style in topic %SYSTEMWEB%.WebTopBar. The default top padding i

---+++ The search box won't find topics in other webs


In %SYSTEMWEB%.WebTopBar you can find the line:
<verbatim>
<input type="hidden" name="web" value="%BASEWEB%" />
Expand Down Expand Up @@ -227,7 +221,7 @@ and add:
#patternClearHeaderLeft,
#patternClearHeaderRight,
#patternTopBarContentsOuter {
height:0px;
height:0px;
}%TMPL:END%
</verbatim></blockquote>

Expand Down

0 comments on commit b215377

Please sign in to comment.