Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Cent OS 4.6 Kernel 2.6.9-67
Web server: apache 2
Perl version: 5.8.5
Client OS: Win XP
Web Browser: Firefox 2
Categories: Skin

-- AhmedGame - 26 Feb 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r4 - 2008-02-26 - ArthurClemens
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.