Update of /var/cvs/applications/searchrelate/examples
In directory james.mmbase.org:/tmp/cvs-serv3201

Modified Files:
        example1.jspx example2.jspx example3.jspx index.jspx 
Log Message:
various details


See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/examples


Index: example1.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/examples/example1.jspx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- example1.jspx       1 Apr 2008 13:05:35 -0000       1.4
+++ example1.jspx       7 Apr 2008 10:15:19 -0000       1.5
@@ -4,9 +4,13 @@
     xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0";
     xmlns:mm-sr="http://www.mmbase.org/tags/mm/searchrelate";
     class="drawer">
+  <!--
+    xmlns:mm-sr="urn:jsptagdir:/WEB-INF/tags/mm/searchrelate/"
+    -->
   <jsp:output omit-xml-declaration="true" />
-  <h1>Example1</h1>
+  <h1><a href="#example1">Example1</a></h1>
   <p>The most basic example</p>
+
   <div>
     <mm:relatednodescontainer role="posrel" type="news" id="current">
       <mm:sortorder field="posrel.pos" />
@@ -15,4 +19,5 @@
     <mm-sr:relate repository="${repository}" current="${current}" 
submit="#submit1" />
     <a id="submit1">Submit</a>
   </div>
+
 </div>


Index: example2.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/examples/example2.jspx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- example2.jspx       1 Apr 2008 13:05:35 -0000       1.4
+++ example2.jspx       7 Apr 2008 10:15:19 -0000       1.5
@@ -4,7 +4,7 @@
     xmlns:mm-sr="http://www.mmbase.org/tags/mm/searchrelate";
     class="drawer">
   <jsp:output omit-xml-declaration="true" />
-  <h1>Example2</h1>
+  <h1><a href="#example2">Example2</a></h1>
   <p>Showing how to make it impossible to relate already related nodes.</p>
   <div>
     <mm:relatednodescontainer role="posrel" type="news" id="current" >


Index: example3.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/examples/example3.jspx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- example3.jspx       1 Apr 2008 13:05:35 -0000       1.5
+++ example3.jspx       7 Apr 2008 10:15:19 -0000       1.6
@@ -4,7 +4,7 @@
     xmlns:mm-sr="http://www.mmbase.org/tags/mm/searchrelate";
     class="drawer">
   <jsp:output omit-xml-declaration="true" />
-  <h1>Example3</h1>
+  <h1><a href="#example3">Example3</a></h1>
   <p>Unrelating should also be possible (but is not yet)</p>
   <div>
     <mm:relatednodescontainer role="posrel" type="news" id="current" >


Index: index.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/examples/index.jspx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- index.jspx  1 Apr 2008 11:38:13 -0000       1.4
+++ index.jspx  7 Apr 2008 10:15:19 -0000       1.5
@@ -20,8 +20,9 @@
       <!-- some javascript to make the examples slide away/slideToggable -->
       $(document).ready(function() {
       $("div.drawer > div").slideUp("fast");
-      $("div.drawer h1").click(function(e) {
-         $(e.target).parent().children("div").slideToggle("fast");
+      $("div.drawer h1 a").click(function(e) {
+         $(e.target).parent().parent().children("div").slideToggle("fast");
+         return false;
          });
       });
     </script>
@@ -38,6 +39,9 @@
         </mm:hasnode>
         <mm:hasnode number="$mag">
           <mm:node number="$mag">
+
+            <h1>Using node ${_node}</h1>
+
             <mm:include page="example1.jspx" />
             <mm:include page="example2.jspx" />
             <mm:include page="example3.jspx" />
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to