Update of /var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate
In directory james.mmbase.org:/tmp/cvs-serv12227

Modified Files:
        relate.tagx 
Log Message:
introduced fields attribute on search and relate to be able to set the fields 
in the list




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


Index: relate.tagx
===================================================================
RCS file: 
/var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate/relate.tagx,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- relate.tagx 26 Aug 2008 10:07:04 -0000      1.34
+++ relate.tagx 19 Oct 2008 14:07:01 -0000      1.35
@@ -6,7 +6,7 @@
     >
   <!--
       @author Michiel Meeuwissen
-      @version $Id: relate.tagx,v 1.34 2008/08/26 10:07:04 michiel Exp $
+      @version $Id: relate.tagx,v 1.35 2008/10/19 14:07:01 andre Exp $
   -->
   <jsp:directive.tag
       example="See /mmexamples/searchrelate"
@@ -43,10 +43,12 @@
   <jsp:directive.attribute name="maxpages"           type="java.lang.Integer"
                            description="Max number of pages to show in the 
pager" />
 
+  <jsp:directive.attribute name="fields"             type="java.lang.String" 
+                           description="Fields to show in both lists. 
Searching still occurs with 'fieldlist type=search' " />
+
   <jsp:directive.attribute name="styleClass"
                            description="Extra classes to be added to outer 
div"/>
 
-
   <jsp:directive.attribute name="context"
                            description="The MMBase security context for new 
nodes (defaults to unset, which will normally result in nodes in the default 
context of the current user)" />
 
@@ -94,6 +96,7 @@
             return $("#mm_related_${seq}")[0].relater.commit(el); });</c:if>
       $("#mm_related_${seq}").each(function() {
       if (this.relater != null) {
+    <c:if test="${! empty fields}"> this.relater.setFields('${fields}'); 
</c:if>
     <c:if test="${! empty pagesize}">  this.relater.setPageSize(${pagesize}); 
</c:if>
     <c:if test="${! empty maxpages}"> this.relater.setMaxPages(${maxpages}); 
</c:if>
     <c:if test="${! empty context}"> this.relater.setContext('${context}'); 
</c:if>
@@ -144,6 +147,9 @@
             <c:if test="${! empty maxpages}">
               <mm:param name="maxpages" referid="maxpages" />
             </c:if>
+            <c:if test="${!empty fields}">
+              <mm:param name="fields" referid="fields" />
+            </c:if>
             <mm:param name="id">mm_related_${seq}_current</mm:param>
           </mm:include>
         </div>
@@ -176,7 +182,7 @@
           </c:otherwise>
         </c:choose>
 
-        <mm:include page="/mmbase/searchrelate/page.jspx" 
referids="customizedir?">
+        <mm:include page="/mmbase/searchrelate/page.jspx" 
referids="customizedir?,fields?">
           <c:if test="${! empty pagesize}">
             <mm:param name="pagesize" referid="pagesize" />
           </c:if>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to