forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject Breadcrump Group
Date Sun, 19 Nov 2006 14:50:29 GMT
Hi,

i edited my pelt skin and commented out the group-tags in skinconf.xml 
cause it's marked optional. The logo disappeared, but in the breadcrumps 
i could still see:

MyGroup > MyProject

I opened site-to-xhtml.xsl and found:

   <xsl:template name="breadcrumbs">
     <xsl:if 
test="(//skinconfig/trail/link1/@name)and(//skinconfig/trail/link1/@name!='')"><a 
href="{//skinconfig/trail/link1/@href}"><xsl:value-of 
select="//skinconfig/trail/link1/@name"/></a></xsl:if>
     <xsl:if 
test="(//skinconfig/trail/link2/@name)and(//skinconfig/trail/link2/@name!='')"> 
&gt; <a href="{//skinconfig/trail/link2/@href}">  <xsl:value-of 
select="//skinconfig/trail/link2/@name"/></a> </xsl:if>
     <xsl:if 
test="(//skinconfig/trail/link3/@name)and(//skinconfig/trail/link3/@name!='')"> 
&gt; <a href="{//skinconfig/trail/link3/@href}">  <xsl:value-of 
select="//skinconfig/trail/link3/@name"/></a> </xsl:if>
     <script type="text/javascript" language="JavaScript" 
src="{$root}skin/breadcrumbs.js"/>
   </xsl:template>

When i deleted the first <xsl:if..> Tag (link1), it works as desired. I 
thought about writing a patch which looks if <group-name> exists and 
depending on the answer link1 will be written or not. But i have no deep 
knowledge about xsl and i am not sure how this should work, so i want to 
ask you to advise. Does a variable-check make sense here or not?

-- chris

Mime
View raw message