Update of /var/cvs/speeltuin/ernst/vpro-wizards/examples/news
In directory 
james.mmbase.org:/tmp/cvs-serv28974/applications/vpro-wizards/examples/news

Modified Files:
        allnews.jsp newsitem.jsp 
Log Message:
work in progress on the example editors


See also: 
http://cvs.mmbase.org/viewcvs/speeltuin/ernst/vpro-wizards/examples/news


Index: allnews.jsp
===================================================================
RCS file: /var/cvs/speeltuin/ernst/vpro-wizards/examples/news/allnews.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- allnews.jsp 23 Jun 2008 16:05:05 -0000      1.1
+++ allnews.jsp 30 Jun 2008 13:10:17 -0000      1.2
@@ -15,7 +15,8 @@
         <list:parentsearchlist >
             <list:searchrow  fields="title,subtitle,intro" >
                 <jsp:attribute name="headerfragment" >
-                    <th> Publicatie </th>
+                    <th>Publicatie</th>
+                    <th>Magazine</th>
                 </jsp:attribute>
                 <jsp:attribute name="rowfragment" >
                     <td>
@@ -24,6 +25,13 @@
                             <mm:param name="detail" value="false" />
                         </mm:include>
                     </td>
+                    <td>
+                        <mm:node number="${nodenrrow}">
+                            <mm:relatednodes type="mags" max="1">
+                                <mm:field name="title" />
+                            </mm:relatednodes>
+                        </mm:node>
+                    </td>
                 </jsp:attribute>
             </list:searchrow>
         </list:parentsearchlist>


Index: newsitem.jsp
===================================================================
RCS file: /var/cvs/speeltuin/ernst/vpro-wizards/examples/news/newsitem.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- newsitem.jsp        23 Jun 2008 16:05:05 -0000      1.2
+++ newsitem.jsp        30 Jun 2008 13:10:17 -0000      1.3
@@ -4,12 +4,20 @@
 <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <[EMAIL PROTECTED] prefix="mm" uri="http://www.mmbase.org/mmbase-taglib-1.0";  
%>
 
-<form:wizard title="Nieuws Bericht" wizardfile="newsitem" >
+<form:wizard title="Nieuws Berichtje" wizardfile="newsitem" >
 
     <edit:path name="Nieuws Bericht" node="${nodenr}" session="newsitem_${not 
empty param.secondnews ? 'second' : ''}"/>
     <edit:sessionpath/>
 
+    <%--
+        This editor has one special feature: among the field list there is a 
dropdown
+        with the available magazines. When you create it, you can select on, 
and
+        the newsitem will be connected to that. it also works for existing 
news items.
+    --%>
+
+    
     <form:container nodetype="news">
+        <form:createrelation source="${param.parentnodenr}" 
referDestination="new" role="${param.relationrole}"/>
         <form:showfield field="number"/>
         <form:datefield field="date" fieldname="Publicatie datum"/>
         <form:textfield field="title"/>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to