Update of /var/cvs/applications/editwizard/templates/data/xsl
In directory james.mmbase.org:/tmp/cvs-serv31412/data/xsl

Modified Files:
        list.xsl 
Log Message:
Use different way to turn on linking in lists: use <action type="link" /> in 
wizard (similar to action type unlink to turn on unlinking).
The relationOrigNode paramter now defaults to origin.



See also: 
http://cvs.mmbase.org/viewcvs/applications/editwizard/templates/data/xsl


Index: list.xsl
===================================================================
RCS file: /var/cvs/applications/editwizard/templates/data/xsl/list.xsl,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- list.xsl    31 May 2007 16:32:23 -0000      1.49
+++ list.xsl    13 Feb 2008 13:21:09 -0000      1.50
@@ -7,17 +7,20 @@
     @author Kars Veling
     @author Michiel Meeuwissen
     @author Nico Klasens
-    @version $Id: list.xsl,v 1.49 2007/05/31 16:32:23 michiel Exp $
+    @version $Id: list.xsl,v 1.50 2008/02/13 13:21:09 pierre Exp $
   -->
 
   <xsl:import href="xsl/baselist.xsl" />
 
   <xsl:param name="deletable">false</xsl:param>
   <xsl:param name="unlinkable">false</xsl:param>
+  <xsl:param name="linkable">false</xsl:param>
   <xsl:param name="creatable">true</xsl:param>
-  <xsl:param name="relationOriginNode">-1</xsl:param>
+  <xsl:param name="relationOriginNode"><xsl:value-of select="$origin" 
/></xsl:param>
   <xsl:param name="relationRole"></xsl:param>
   <xsl:param name="relationCreateDir"></xsl:param>
+  <xsl:param name="relationStartnodes"></xsl:param>
+  <xsl:param name="relationNodepath"></xsl:param>
 
   <xsl:param name="deleteprompt">
     <xsl:call-template name="prompt_delete_confirmation" />
@@ -57,8 +60,8 @@
     <script type="text/javascript" src="{$javascriptdir}list.js">
       <xsl:comment>help IE</xsl:comment>
     </script>
-    <xsl:if test="$relationOriginNode != '-1'">
-      <script type="text/javascript" 
src="{$javascriptdir}newfromlist.jsp{$sessionid}?language={$language}&amp;country={$country}&amp;timezone={$timezone}&amp;referrer={$referrer_encoded}&amp;relationOriginNode={$relationOriginNode}&amp;relationRole={$relationRole}&amp;relationCreateDir={$relationCreateDir}&amp;objecttype={$objecttype}">
+    <xsl:if test="$linkable='true'">
+      <script type="text/javascript" 
src="{$javascriptdir}newfromlist.jsp{$sessionid}?language={$language}&amp;country={$country}&amp;timezone={$timezone}&amp;referrer={$referrer_encoded}&amp;relationOriginNode={$relationOriginNode}&amp;relationRole={$relationRole}&amp;relationCreateDir={$relationCreateDir}&amp;relationStartnodes={$relationStartnodes}&amp;relationNodepath={$relationNodepath}&amp;objecttype={$objecttype}">
        <xsl:comment>help IE</xsl:comment>
       </script>
     </xsl:if>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to