forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scher...@wyona.com>
Subject Re: [jira] Commented: (FOR-559) FAQ+TOC problem: force-toc option
Date Wed, 08 Feb 2006 12:40:11 GMT
El mié, 08-02-2006 a las 13:19 +0100, Ross Gardler (JIRA) escribió:
>     [ http://issues.apache.org/jira/browse/FOR-559?page=comments#action_12365549 ] 
> 
> Ross Gardler commented on FOR-559:
> ----------------------------------
> 
> What do Forrest devs think of this patch, I'm not sure about applying it because it appears
to be a workaround not a solution. 
> 
> What it does is add a meta-information value to a documents header:
> 
> <header>
>       <title><xsl:value-of select="@title"/></title>
> +     <meta name="forrest.force-toc">true</meta>
> </header>
> 
> And then uses this to decide on whether or not to display a TOC:
> 
> -        <xsl:if test="count(//tocitems/tocitem) >= $config/toc/@min-sections">
> +        <xsl:if test="(count(//tocitems/tocitem) >= $config/toc/@min-sections)
or (//tocitems/@force = 'true')">
> 
> I'm +0 on applying this on the grounds that it solves a users problem and that the core
problem can be more completely resolved when the dispatcher is utilised.
> 

+0, like you stated it is an old fashion skins workaround. ;-) Seems to
not hurt anything, but it is solved in the dispatcher.

salu2
-- 
Thorsten Scherler
COO Spain
Wyona Inc.  -  Open Source Content Management  -  Apache Lenya
http://www.wyona.com                   http://lenya.apache.org
thorsten.scherler@wyona.com                thorsten@apache.org


Mime
View raw message