Item747: how do i set a pattern web left bar for the entire site
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release:
it looks to me like I currently have to edit
WebBarLeftExample ? as
%{ Please note that there must be a new line before the include of the WebLeftBar. Other wise the first bullet will not be displayed as a bullet. See Foswiki task Item410 }%
%TMPL:DEF{"websidebar"}%%TMPL:P{"sidebar:webindicator"}%
%IF{"istopic 'WebLeftBar'" then="$percntINCLUDE{$quot%WEB%.WebLeftBar$quot}$percnt" else="$percntINCLUDE{$quot%WEB%.WebLeftBarExample$quot}$percnt"}%
%TMPL:END%
the viewsidebar tmpl file doesn't seem to have an option for an over-ride for a site-wide sidebar :/
In
YuiMenuContrib, I use another layer of IF in the default topic
%STARTINCLUDE%
%INCLUDE{
"%IF{"istopic '%USERSWEB%.YuiMenu'" then="%USERSWEB%.YuiMenu" else="%SYSTEMWEB%.YuiMenuContrib"}%"
MENUWEB="%MENUWEB%"
section="topmenu"
}%
%STOPINCLUDE%
if we add the same construct to System's
WebBarLeftExample pointing to a non-shipped topic in the Main web, we can avoid forcing admins to edit in the
SystemWeb, or worse, to make and maintain identical copies of this topic in each web - mmm, as it is currently.
I think I'll create a
viewsidebar.pattern_yuimenu.tmpl
for now
--
SvenDowideit - 12 Jan 2009
The answer is obviously to add an
INCLUDE in
WebLeftBar
But what Sven really has is an enhancement request
So changing to Enhancement. And please not in 1.0.X releases.
--
KennethLavrsen - 25 Apr 2009