forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <Cyriaque.Dupoiri...@pcotech.fr>
Subject Re: [Structurer] Toc in navbar with pelt theme
Date Tue, 25 Oct 2005 12:30:13 GMT
Thorsten Scherler a écrit :

>El lun, 24-10-2005 a las 18:00 +0200, Cyriaque Dupoirieux escribió:
>  
>
>>Hi,
>>
>>    The nav-section template now takes :
>>
>>    <jx:import
>>    uri="cocoon://#{$cocoon/parameters/getRequest}.navigation.xml"/>
>>
>>in parameter. I am not sure it is enough to create the mini-toc in the 
>>left bar ?
>>    
>>
>
>No, you can see this in requesting localhost:8888/index.navigation.xml.
>  
>
Thank you, it is a very good information. This may be included in our 
documentation !

>  
>
>>    Do I add <jx:import 
>>uri="cocoon://#{$cocoon/parameters/getRequest}.toc.xml"/> to get 
>>information I need or are they in the navigation.xml ?
>>    
>>
>
>Yes, you need to extend (in fv)
><forrest:contract name="nav-section">
>  <forrest:properties contract="nav-section">
>    <forrest:property name="nav-section" nugget="get.navigation">
>      <jx:import
>uri="cocoon://#{$cocoon/parameters/getRequest}.navigation.xml"/>
>    </forrest:property>
>    <forrest:property name="nav-section-toc" nugget="get.tov">
>      <jx:import
>uri="cocoon://#{$cocoon/parameters/getRequest}.toc.xml"/>
>    </forrest:property>
>  </forrest:properties>
></forrest:contract>
>
>in the contract:
><xsl:template name="nav-section-body">
>  <xsl:param name="nav-section" select="'test'"/>
>  <xsl:param name="nav-section-toc" select="'test'"/>
>...
><xsl:call-template name="menu">
>  <xsl:with-param name="root" select="$nav-section/navigation/menu"/>
>  <xsl:with-param name="toc" select="$nav-section-toc"/>
></xsl:call-template>
>...
>You need to pass this param through the templates (important!!!) till
>you find:
><xsl:for-each select = "//tocitems/tocitem"/>
>That should then read:
><xsl:for-each select = "$toc//tocitems/tocitem"/>
>
>  
>
Thank you again, everything is done.
I still have the following problems :

    * Images indicated in the css are not found - ie in a css :
          o background-images: url('images/chapter.gif');


    * The scripts included in themes (*.ft) comes from
      $FORREST_HOME/main/webapp/skins/common/scripts - ie in a *.ft :
          o <xsl:template name="nav-section-head">
                      <script type="text/javascript"
            language="javascript" src="{$root}skin/menu.js">&#160;</script>
            </xsl:template>
          o The problem may be that several themes use {$root}skin/ to
            include scripts.


    * At last, but not least, the links (href) indicated in the
          o

cocoon://#{$cocoon/parameters/getRequest}.toc.xml

          o

are not good, they do not exist in the generated content page...

Salutations,
Cyriaque,

>HTH
>
>salu2
>  
>

Mime
View raw message