Author: michiel
Date: 2010-02-12 17:52:21 +0100 (Fri, 12 Feb 2010)
New Revision: 40983

Modified:
   
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/related/view.tag
Log:
support for 'searchdir'

Modified: 
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/related/view.tag
===================================================================
--- 
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/related/view.tag
   2010-02-12 14:13:49 UTC (rev 40982)
+++ 
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/related/view.tag
   2010-02-12 16:52:21 UTC (rev 40983)
@@ -1,22 +1,30 @@
-<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-2.0"; prefix="mm" %>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
-<%@ taglib prefix="util" tagdir="/WEB-INF/tags/vpro-wizards/util" %>
+<%@ tag
+    description="This tags shows currently related nodes"
+%>
+<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-2.0"; prefix="mm"
+%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core";
+%><%@ taglib prefix="util" tagdir="/WEB-INF/tags/vpro-wizards/util"
+%>
 
-<%@ attribute name="title" %>
-<%@ attribute name="relationrole" %>
-<%@ attribute name="nodetype" description="is used by the related:view tag "  
%>
-<%@ attribute name="edit" type="java.lang.Boolean" %>
-<%@ attribute name="delete" type="java.lang.Boolean" %>
-<%@ attribute name="constraints"  description="'legacy' constraints as a 
string" %>
-<%@ attribute name="confirmdelete" type="java.lang.Boolean" 
description="wether you must confirm deleting nodes. default is true"%>
-<%@ attribute name="sortable" type="java.lang.Boolean" %>
-<%@ attribute name="multipart" type="java.lang.Boolean"  description="don't 
set this if you use a fielfield in the body. In that case it's the default" %>
+<%@ attribute name="title"
+%><%@ attribute name="relationrole"
+%><%@ attribute name="searchdir"
+                description="The searchdir to use ('source', 'destintion', 
'both' or empty (which is 'both' and default)"
+%><%@ attribute name="nodetype" description="is used by the related:view tag "
+%><%@ attribute name="edit" type="java.lang.Boolean"
+%><%@ attribute name="delete" type="java.lang.Boolean"
+%><%@ attribute name="constraints"  description="'legacy' constraints as a 
string"
+%><%@ attribute name="confirmdelete" type="java.lang.Boolean" 
description="wether you must confirm deleting nodes. default is true"
+%><%@ attribute name="sortable" type="java.lang.Boolean"
+%><%@ attribute name="multipart" type="java.lang.Boolean"  description="don't 
set this if you use a fielfield in the body. In that case it's the default"
+%><%--for overriding the gui for this node
+--%>
+<%@ attribute name="display" fragment="true"
+              description="when this is set, the fragment is evaluated for 
each node. the fragment must render the gui for this node. use fields 
'_nodenr', '_relationnr' and 'nodetype'" %>
+<%@ variable name-given="_nodenr" scope="AT_BEGIN"
+%><%@ variable name-given="_relationnr"  scope="AT_BEGIN"
+%>
 
-<%--for overriding the gui for this node--%>
-<%@ attribute name="display" fragment="true" description="when this is set, 
the fragment is evaluated for each node. the fragment must render the gui for 
this node. use fields '_nodenr', '_relationnr' and 'nodetype'" %>
-<%@ variable name-given="_nodenr" scope="AT_BEGIN" %>
-<%@ variable name-given="_relationnr"  scope="AT_BEGIN"%>
-
 <%-- this parameter is used to communicate the editor to open the records with 
(when edit is true). perhaps it should be a tag parameter--%>
 <c:if test="${not empty param.openwizard}">
     <util:addParam name="openwizard" parameter="openwizard"/>
@@ -64,7 +72,10 @@
         <mm:log>test related:view relationrole:${relationrole}, 
nodetype:${nodetype}, orderby: ${orderby}</mm:log>
         <c:if test="${not empty nodenr}">
             <mm:node number="${nodenr}">
-                <mm:related  path="${relationrole},${nodetype}" 
orderby="${orderby}" fields="${orderby}" constraints="${constraints}">
+
+              <mm:related  path="${relationrole},${nodetype}" 
orderby="${orderby}"
+                           searchdir="${searchdir}"
+                             fields="${orderby}" constraints="${constraints}">
                     <mm:first>
                         <ul>
                     </mm:first>

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to