forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Gardler (JIRA)" <>
Subject [jira] Commented: (FOR-559) FAQ+TOC problem: force-toc option
Date Wed, 08 Feb 2006 12:19:01 GMT
    [ ] 

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:

      <title><xsl:value-of select="@title"/></title>
+     <meta name="forrest.force-toc">true</meta>

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.

> FAQ+TOC problem: force-toc option
> ---------------------------------
>          Key: FOR-559
>          URL:
>      Project: Forrest
>         Type: New Feature
>   Components: Skins (general issues)
>     Versions: 0.6, 0.7, 0.8-dev
>     Reporter: Jeremias Maerki
>     Priority: Minor
>  Attachments: forrest-force-toc.diff
> This is a hybrid patch/RFE/bugfix. Today, I've taken another stab at the problem Clay
Leeds reported to you in May:
> We have the problem in FOP that the TOC for the FAQ page isn't generated.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message