Update of /var/cvs/contributions/didactor2/src/core/templates/content
In directory james.mmbase.org:/tmp/cvs-serv24359

Modified Files:
        index.jspx 
Log Message:
use a cookie to keep track which learnobjects where viewn by user (could also 
use property later, btw, but avoid the db overhead if not actually needed)


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/templates/content


Index: index.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/templates/content/index.jspx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- index.jspx  26 Jun 2008 15:39:49 -0000      1.7
+++ index.jspx  7 Jan 2009 17:30:39 -0000       1.8
@@ -25,12 +25,23 @@
             <mm:treehaspage page="${domain}${type}/index.jsp" 
objectlist="$includePath">
               <mm:treeinclude debug="xml" page="${domain}${type}/index.jsp" 
objectlist="$includePath" 
referids="obj...@learnobject,$referids,fb_madetest?,justposted?" />
             </mm:treehaspage>
-            <mm:treehaspage page="${domain}${type}/index.jsp" 
objectlist="$includePath" inverse="true">
+            <mm:treehaspage page="${domain}${type}/index.jsp"
+                            objectlist="$includePath" inverse="true">
               <mm:treeinclude debug="xml" 
page="${domain}learnblocks/index.jsp" objectlist="$includePath" 
referids="obj...@learnobject,$referids,fb_madetest?" />
             </mm:treehaspage>
           </c:otherwise>
         </c:choose>
 
+        <mm:hasfunction name="sequence">
+          <mm:import from="cookie" id="maxsequence" 
externid="didactor_${education}_maxsequence" />
+          <mm:function name="sequence" write="false">
+            <c:if test="${empty maxsequence or _ gt maxsequence}">
+              <mm:write cookie="didactor_${education}_maxsequence" />
+            </c:if>
+          </mm:function>
+
+        </mm:hasfunction>
+
         <di:blocks classification="after_content" />
 
       </mm:node>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to