forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r345779 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/common/html/nav-section.ft
Date Sun, 20 Nov 2005 19:29:48 GMT
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">&#160;</script>
+                src="{$root}themes/menu.js">&#160;</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'"/>



Mime
View raw message