[pmwiki-users] Triad Skin - Changing the Title Bar

Stirling Westrup sti at pooq.com
Wed Sep 13 13:57:49 CDT 2006


Pierre Racine wrote:
> How can I change the TitleBar?

Well, if its a simple change, just edit your Site.TitleBar page. If you
want something more comprehensive, like being able to override the
navigation bar that is shown, then you need to edit the skin-triad.tmpl
file. I did this on my own site. Look for the section that reads:

<!--PageTitleFmt-->
                <div id= 'titlebarbox'>
                  <div id='titlebar' >
                        <div id='pagegroup'>
                           <a
href='$ScriptUrl/$PageGroup'>$PageGroup</a></div>
                        <div id='pagetitle'>
                          <!--wiki:$FullName-TitleBar--><h1><a
class='titlelink' href='$PageUrl'>$Titlespaced</a></h1>
                        </div>
                  </div>
                </div>
<!--/PageTitleFmt-->


And change it to:

<!--PageTitleFmt-->
                <div id= 'titlebarbox'>
                  <div id='titlebar' >
                     <!--wiki:$FullName-TitleBar $Group.TitleBar
$SiteGroup.TitleBar-->
                  </div>
                </div>
<!--/PageTitleFmt-->


And then you need to go and edit your Site.TitleBar to say what you
want. Mine has this:

>>id=pagegroup<<
[[{$Group}(.{$DefaultName})]] &middot; [[{$PageUrl}|{$Name}]]
>><<
>>id=pagetitle<<
! [[{$PageUrl}|{$Titlespaced}]]
>><<


> It would be nice if this skin would integrate the feature described in
> 
> http://www.pmwiki.org/wiki/Cookbook/DynamicPageActions
> 
> where action only appears when allowed in AuthUser mode…

This is also easy to do in Triad. Instead of editing the
Site.PageActions page, you need to modify your Site.PageTopMenu to have
the dynamic actions. Mine reads like this:

>>lnav<<
* [[{$DefaultGroup}|Home]]
>><<
>>rnav<<
(:if ( ! action browse ) :)
* %item class=browse accesskey='$[ak_view]'%[[{$FullName} | $[View] ]]
(:if ( auth edit && ! action edit ) :)
* %item rel=nofollow class=edit
accesskey='$[ak_edit]'%[[{$FullName}?action=edit | $[Edit] ]]
(:if ( auth edit && ! action diff ) :)
* %item rel=nofollow class=diff
accesskey='$[ak_history]'%[[{$FullName}?action=diff | $[History] ]]
(:if ( auth upload ) :)
* %item rel=nofollow class=upload
accesskey='$[ak_attach]'%[[{$FullName}?action=upload | $[Attach] ]]
(:if ( ! action print ) :)
* %item rel=nofollow class=print
accesskey='$[ak_print]'%[[{$FullName}?action=print | $[Print] ]]
(:if:)
* %accesskey=$[ak_recentchanges]%[[RecentChanges| $[Recent Changes] ]]
(:if ( auth edit ) :)
* %item rel=nofollow class=login
accesskey='$[ak_login]'%[[{$FullName}?action=logout | $[Logout] ]]
(:if ( ! auth edit ) :)
* %item rel=nofollow class=logout
accesskey='$[ak_logout]'%[[{$FullName}?action=login | $[Login] ]]
(:if:)
>><<




More information about the pmwiki-users mailing list