Update of /var/cvs/contributions/didactor2/src/core/metainf/tags/di/core
In directory james.mmbase.org:/tmp/cvs-serv11980/tags/di/core

Modified Files:
        html.tagx 
Added Files:
        may.tagx 
Log Message:
added a di:may tag, which can replace some horrible jsp code here and there


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/metainf/tags/di/core


may.tagx is new



Index: html.tagx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/metainf/tags/di/core/html.tagx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- html.tagx   15 Jan 2008 10:23:35 -0000      1.3
+++ html.tagx   17 Jan 2008 12:17:37 -0000      1.4
@@ -8,6 +8,7 @@
       description="Didactor template, put your component in its's body. Like 
so, you don't need to explicitly use ugly header and footer includes yourself."
       />
   <jsp:directive.attribute name="title_key"    />
+  <jsp:directive.attribute name="title"    />
   <jsp:directive.attribute name="rank" />
   <jsp:directive.attribute name="expires" />
   <jsp:directive.attribute name="reset" />
@@ -22,19 +23,27 @@
     <mm:cloud rank="${empty rank ? 'didactor user' : rank}">
       <html  xmlns="http://www.w3.org/1999/xhtml";>
         <di:head>
-          <title><di:translate key="${component}.learnenvironmenttitle" 
/></title>
+          <title>
+            <jsp:text>${title}</jsp:text>
+            <c:if test="${! empty title_key}">
+              <di:translate key="${title_key}" />
+            </c:if>
+            <mm:node referid="education"><mm:field name="name"><mm:isnotempty> 
-  <mm:write /></mm:isnotempty></mm:field></mm:node>
+          </title>
+          <c:if test="${! empty component}">
           <mm:haspage page="/${component}/style/base.css">
             <mm:link page="/${component}/style/base.css">
               <link rel="stylesheet" type="text/css" href="${_}" />
             </mm:link>
           </mm:haspage>
+          </c:if>
         </di:head>
         <body class="${styleClass}">
           <div class="componentBody">
             <di:include page="/cockpit/applicationbar.jsp" />
             <di:include page="/cockpit/providerbar.jsp" />
             <di:include page="/cockpit/educationbar.jsp" />
-            <div class="mm_c_${component}">
+            <div class="di_body mm_c_${component}">
               <jsp:doBody />
             </div>
           </div>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to