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

Modified Files:
        index.jspx 
Log Message:
this should make it possible to use javascript of /education/ also in other 
components


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.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- index.jspx  14 Mar 2008 16:28:09 -0000      1.1
+++ index.jspx  14 Mar 2008 16:39:45 -0000      1.2
@@ -10,16 +10,18 @@
 
     <mm:node referid="object">
       <mm:import externid="type"><mm:nodeinfo type="nodemanager" /></mm:import>
+
+      <mm:property nodemanager="${type}" name="show_domain" id="domain" 
write="false" />
       <c:choose>
         <c:when test="${type eq 'educations'}">
           <mm:treeinclude page="/education/educations.jsp" 
objectlist="$includePath" referids="$referids,[EMAIL PROTECTED]" />
         </c:when>
         <c:otherwise>
-          <mm:treehaspage page="/education/${type}/index.jsp" 
objectlist="$includePath">
-            <mm:treeinclude page="/education/${type}/index.jsp" 
objectlist="$includePath" referids="[EMAIL 
PROTECTED],$referids,fb_madetest?,justposted?" />
+          <mm:treehaspage page="${domain}${type}/index.jsp" 
objectlist="$includePath">
+            <mm:treeinclude page="${domain}${type}/index.jsp" 
objectlist="$includePath" referids="[EMAIL 
PROTECTED],$referids,fb_madetest?,justposted?" />
           </mm:treehaspage>
-          <mm:treehaspage page="/education/${type}/index.jsp" 
objectlist="$includePath" inverse="true">
-            <mm:treeinclude page="/education/learnblocks/index.jsp" 
objectlist="$includePath" referids="[EMAIL PROTECTED],$referids,fb_madetest?" />
+          <mm:treehaspage page="${domain}${type}/index.jsp" 
objectlist="$includePath" inverse="true">
+            <mm:treeinclude page="${domain}learnblocks/index.jsp" 
objectlist="$includePath" referids="[EMAIL PROTECTED],$referids,fb_madetest?" />
           </mm:treehaspage>
         </c:otherwise>
       </c:choose>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to