Update of /var/cvs/contributions/didactor2/src/core/metainf/tags/di/core
In directory james.mmbase.org:/tmp/cvs-serv14224
Modified Files:
background.tagx
Log Message:
cleaning up, less warnings in the log
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/metainf/tags/di/core
Index: background.tagx
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/metainf/tags/di/core/background.tagx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- background.tagx 31 Oct 2008 15:55:26 -0000 1.5
+++ background.tagx 13 Nov 2008 11:09:55 -0000 1.6
@@ -9,25 +9,27 @@
<jsp:directive.attribute name="styleClass" />
- <mm:import id="startNode">${_node}</mm:import>
<mm:hasrelationmanager sourcemanager="${_node}" destinationmanager="images"
role="background">
<mm:relatednodescontainer type="images" role="background">
- <mm:size id="size" write="false"/>
- <c:if test="${size eq 0}">
- <mm:node number="${startNode}">
+ <mm:size>
+ <c:choose>
+ <c:when test="${_ eq 0}">
<mm:relatednodes path="posrel,object">
- <mm:node>
+ <mm:hasrelationmanager sourcemanager="${_node}"
destinationmanager="images" role="background">
<mm:relatednodes path="background,images">
<mm:import id="background">url('<mm:image
template="${di:setting('education', 'background_image_template')}"
/>')</mm:import>
</mm:relatednodes>
- </mm:node>
+ </mm:hasrelationmanager>
</mm:relatednodes>
- </mm:node>
- </c:if>
- <mm:listnodes>
+ </c:when>
+ <c:otherwise>
+ <mm:relatednodes>
<!-- f(png)+s(500)+fill(rgba(255,255,255,80))+draw(rectangle
0,0,1000,1000)+draw(rectangle 240,0,1000,1000) -->
<mm:import id="background">url('<mm:image
template="${di:setting('education', 'background_image_template')}"
/>')</mm:import>
- </mm:listnodes>
+ </mm:relatednodes>
+ </c:otherwise>
+ </c:choose>
+ </mm:size>
</mm:relatednodescontainer>
</mm:hasrelationmanager>
<div
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs