Update of 
/var/cvs/contributions/didactor2/src/education/templates/education/learnblocks
In directory james.mmbase.org:/tmp/cvs-serv3940

Modified Files:
        index.jsp node.jspx 
Added Files:
        subnavigation.jspx 
Log Message:
if we reach a certain depth, a 'subnavigation' (use #) can be used in the 
presentation of the learnblock


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/learnblocks


subnavigation.jspx is new



Index: index.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/learnblocks/index.jsp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- index.jsp   24 Jan 2008 10:03:52 -0000      1.39
+++ index.jsp   24 Jan 2008 11:13:41 -0000      1.40
@@ -19,6 +19,7 @@
 
         <div class="learnenvironment">
           <mm:node number="$learnobject">
+            <di:include page="/education/learnblocks/subnavigation.jspx" />
             <di:include page="/education/learnblocks/node.jspx" />
           </mm:node>
 


Index: node.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/learnblocks/node.jspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- node.jspx   24 Jan 2008 10:03:52 -0000      1.1
+++ node.jspx   24 Jan 2008 11:13:41 -0000      1.2
@@ -6,6 +6,8 @@
     xmlns:di="http://www.didactor.nl/ditaglib_1.0";
     >
   <jsp:output omit-xml-declaration="yes" />
+  <div class="learnblock" id="learnblock_${_node}">
+    <a name="learnblock_${_node}"><jsp:text> </jsp:text></a>
   <mm:nodeinfo type="type">
     <mm:treehaspage objectlist="${includePath}" 
page="/education/pages/${_}/index.jspx">
       <mm:treeinclude page="/education/pages/${_}/index.jspx"
@@ -24,12 +26,17 @@
   </mm:nodeinfo>
 
   <mm:function name="path" write="false">
+      <!--
+          If we reach a certain 'depth' in the tree, then we will simply
+          recursively show the rest of the branch
+      -->
     <c:if test="${fn:length(_) ge di:setting('education', 'max_depth')}">
-      <div class="learnblock">
+        <div class="sublearnblocks" id="sublearnblocks_${_node}">
         <mm:relatednodes type="learnblocks" searchdir="destination">
           <di:include page="/education/learnblocks/node.jspx" />
         </mm:relatednodes>
       </div>
     </c:if>
   </mm:function>
+  </div>
 </mm:node>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to