Update of /var/cvs/applications/taglib/META-INF/tags/mm/u
In directory james.mmbase.org:/tmp/cvs-serv10652

Modified Files:
        relation.tagx 
Log Message:



See also: http://cvs.mmbase.org/viewcvs/applications/taglib/META-INF/tags/mm/u


Index: relation.tagx
===================================================================
RCS file: /var/cvs/applications/taglib/META-INF/tags/mm/u/relation.tagx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- relation.tagx       13 Aug 2008 12:45:14 -0000      1.2
+++ relation.tagx       14 Aug 2008 15:30:21 -0000      1.3
@@ -6,16 +6,21 @@
     >
   <jsp:directive.tag body-content="scriptless" />
   <jsp:directive.attribute name="to" type="java.lang.String"  required="true" 
/>
+  <jsp:directive.attribute name="from" type="java.lang.String"  />
   <jsp:directive.attribute name="role" type="java.lang.String"  />
   <jsp:directive.attribute name="searchdir" type="java.lang.String"  />
   <jsp:directive.attribute name="notfound" type="java.lang.String"   />
+
+  <mm:node number="${from}"> <!-- so, if from is empty, then current node -->
+
   <mm:listrelationscontainer role="${role}" type="object" 
searchdir="${searchdir}" >
     <mm:addnode element="object" number="${to}" />
     <mm:listrelations>
       <mm:node id="thenode" />
     </mm:listrelations>
-    <mm:node number="${empty thenode ? -1 : thenode}" notfound="${empty 
notfound ? 'skip' : notfound}" >
+      <mm:node id="idnode" number="${empty thenode ? -1 : thenode}" 
notfound="${empty notfound ? 'skip' : notfound}" >
       <jsp:doBody />
     </mm:node>
   </mm:listrelationscontainer>
+  </mm:node>
 </jsp:root>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to