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

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Wed Sep 13 14:21:31 CDT 2006


I could not find any Site.TitleBar page... Either in the base wikilib.d
folder, nor in the pub\skins\triad\wikilib.d. Where will it be after I try
your change?

Thanks a lot.

Pierre

> -----Message d'origine-----
> De : pmwiki-users-bounces at pmichaud.com [mailto:pmwiki-users-
> bounces at pmichaud.com] De la part de Stirling Westrup
> Envoyé : 13 septembre 2006 14:58
> À : pmwiki-users at pmichaud.com
> Objet : Re: [pmwiki-users] Triad Skin - Changing the Title Bar
> 
> 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:)
> >><<
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users





More information about the pmwiki-users mailing list