You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/11/20 20:29:48 UTC
svn commit: r345779 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft
Author: rgardler
Date: Sun Nov 20 11:29:42 2005
New Revision: 345779
URL: http://svn.apache.org/viewcvs?rev=345779&view=rev
Log:
add a property to the nav-section template making the javascript expanding/collapsing optional
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft?rev=345779&r1=345778&r2=345779&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft Sun Nov 20 11:29:42 2005
@@ -39,6 +39,7 @@
<jx:import uri="cocoon://#{$cocoon/parameters/getRequest}.toc.xml"/>
</forrest:property>
[<forrest:property name="toc" max-depth="2"/>]
+ [<forrest:property name="expanding">false</forrest:property>]
</forrest:properties>
</forrest:contract>]]></usage>
<forrest:template
@@ -47,10 +48,13 @@
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="nav-section-head">
+ <xsl:param name="expanding" select="'true'"/>
+ <xsl:if test="$expanding = 'true'">
<script type="text/javascript" language="javascript"
- src="{$root}themes/menu.js"> </script>
+ src="{$root}themes/menu.js"> </script>
+ </xsl:if>
</xsl:template>
-
+
<xsl:template name="nav-section-body">
<xsl:param name="nav-section" select="'test'"/>
<xsl:param name="nav-section-toc" select="'test'"/>