Question
I installed TWiki-4.2.0 and kept everything as default (using Pattern Skin). I want to move the "bottom tool bar" to display right after the "top tool bar" before displaying the content of the page. By bottom tool bar I am referring to the section which has the following links "Edit | Attach | Print version | History: r1 | Backlinks | Raw View | Raw edit | More topic "
Which file do I need to modify to accomplish this?
So far I inspected view.pattern.tmpl, view.tmpl, layout.css and couldn't figure out how TWiki render the page layout and the order it displays.
Environment
--
AhmedGame - 26 Feb 2008
Answer
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.
You need to move
%TMPL:P{"topicaction"}% around. For instance (in
view.pattern.tmpl):
%TMPL:DEF{"patterntopiccontents"}%%TMPL:P{"broadcastmessage"}%%TMPL:P{"top"}%%TMPL:P{"contentheaderstylewrapper"}%%TMPL:P{"formtop"}%%TMPL:P{"attachmentstop"}%<div class="patternContent"><div class="patternTopic">%TMPL:P{"topicaction"}%%TMPL:P{"content"}%</div><!-- /patternTopic-->
%TMPL:P{"contentfooterstylewrapper"}%%TMPL:P{"formbottom"}%%TMPL:P{"attachmentsbottom"}%</div><!-- /patternContent-->
%TMPL:P{"footernote"}%%TMPL:END%
--
ArthurClemens - 26 Feb 2008
The solution above worked. By moving %TMP:P{"topicaction"}% in view.pattern.tmpl file, I was able change the page layout and the order each action item appears.
%TMPL:DEF{"patterntopiccontents"}%
%TMPL:P{"broadcastmessage"}%
%TMPL:P{"top"}%
%TMPL:P{"contentheaderstylewrapper"}%
%TMPL:P{"formtop"}%
%TMPL:P{"attachmentstop"}%
%TMPL:P{"topicaction"}%
<div class="patternContent">
<div class="patternTopic">
%TMPL:P{"content"}%
</div><!-- /patternTopic-->
%TMPL:P{"contentfooterstylewrapper"}%
%TMPL:P{"formbottom"}%
%TMPL:P{"attachmentsbottom"}%</div><!-- /patternContent-->
%TMPL:P{"topicaction"}%
%TMPL:P{"footernote"}%
%TMPL:END%
--
AhmedGame - 26 Feb 2008
It is recommended you write that DEF in a new template file, for instance
view.actionsattop.tmpl with
%TMPL:INCLUDE{"view"}% added to the top; then set the skin to
actionsattop,pattern.
--
ArthurClemens - 26 Feb 2008