Update of /var/cvs/contributions/didactor2/src/shoutbox/blocks
In directory james.mmbase.org:/tmp/cvs-serv29032/blocks

Modified Files:
        index.jspx 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/shoutbox/blocks


Index: index.jspx
===================================================================
RCS file: /var/cvs/contributions/didactor2/src/shoutbox/blocks/index.jspx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- index.jspx  28 Aug 2008 14:42:29 -0000      1.6
+++ index.jspx  4 Sep 2008 13:23:12 -0000       1.7
@@ -6,18 +6,56 @@
           xmlns:di="http://www.didactor.nl/ditaglib_1.0";
           version="2.0">
 
+
+  <!-- TODO this is didactor specific -->
        <mm:node number="Default.Background" notfound="skip">
                <mm:import id="background">url('<mm:image 
template="${di:setting('education', 
'background_image_template')}"/>')</mm:import>
        </mm:node>
+
        <div class="learnenvironment" style="background-image: ${empty 
background ? '' : background}">
                <div class="mm_c c_shoutbox b_index 
${requestScope['org.mmbase.componentClassName']}" 
id="${requestScope['org.mmbase.componentId']}">
+
+      <mm:import externid="reference"  />
+      <mm:cloud method="asis">
+        <mm:param name="org.mmbase.shoutbox.reference" value="${reference}" />
+
                        <mm:import externid="source"/>
+
+        <script type="text/javascript">
+          $(document).ready(function() {
+          $("#mm_reference_search").hide();
+          $("#mm_reference").change(function() {
+          document.location.href = "<mm:url 
/>?source=${source}&amp;amp;reference=" + this.value;
+          });
+          });
+        </script>
+
                        <mm:node number="${source}">
+
+          <h2>
+            <fmt:message key="title">
+              <fmt:param><mm:nodeinfo type="gui" /></fmt:param>
+            </fmt:message>
+          </h2>
+
+          <mm:fieldlist nodetype="shouts" fields="reference">
+            <mm:fieldinfo type="searchinput" />
+          </mm:fieldlist>
+
+
+
                                <mm-sr:relatednodes type="shouts"
-                            role="posrel" fields="from,title,body"
+                              role="posrel"
                             item="/mmbase/components/shoutbox/item.jspx" 
orderby="posrel.pos" direction="down"
-                            createposition="top" />
+                              createposition="top">
+            <jsp:attribute name="constraints">
+              <mm:isnotempty referid="reference">
+                <mm:constraint field="reference" value="${reference}" />
+              </mm:isnotempty>
+            </jsp:attribute>
+          </mm-sr:relatednodes>
                        </mm:node>
+      </mm:cloud>
                </div>
        </div>
 </jsp:root>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to