Author: michiel
Date: 2010-03-18 17:06:39 +0100 (Thu, 18 Mar 2010)
New Revision: 41522
Modified:
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/page.tagx
Log:
Modified:
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/page.tagx
===================================================================
---
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/page.tagx
2010-03-18 16:01:20 UTC (rev 41521)
+++
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/page.tagx
2010-03-18 16:06:39 UTC (rev 41522)
@@ -39,29 +39,23 @@
</c:choose>
<c:choose>
<c:when test="${empty _node}">
- <mm:listnodescontainer type="pages">
- <mm:constraint field="online" operator="lt" value="${now}" />
- <mm:constraint field="offline" operator="gt" value="${now}" />
- <mm:constraint field="show" value="true" />
- <mm:sortorder field="online" direction="down" /> <!-- show the one
which went online most recently -->
- <mm:maxnumber value="1" />
- <mm:listnodes>
- <jsp:doBody />
- </mm:listnodes>
- </mm:listnodescontainer>
+ <mm:listnodescontainer type="pages" id="container" />
</c:when>
<c:otherwise>
<mm:relatednodescontainer type="pages">
- <mm:constraint field="online" operator="lt" value="${now}" />
- <mm:constraint field="offline" operator="gt" value="${now}" />
- <mm:constraint field="show" value="true" />
- <mm:sortorder field="online" direction="down" /> <!-- show the one
which went online most recently -->
- <mm:maxnumber value="1" />
- <mm:relatednodes>
- <jsp:doBody />
- </mm:relatednodes>
- </mm:relatednodescontainer>
+ </mm:relatednodescontainer>
</c:otherwise>
</c:choose>
+ <mm:listnodescontainer referid="container">
+ <mm:constraint field="online" operator="lt" value="${now}" />
+ <mm:constraint field="offline" operator="gt" value="${now}" />
+ <mm:constraint field="show" value="true" />
+ <mm:sortorder field="online" direction="down" /> <!-- show the one which
went online most recently -->
+ <mm:maxnumber value="1" />
+ <mm:listnodes>
+ <mm:node id="page" />
+ </mm:listnodes>
+ </mm:listnodescontainer>
+
</jsp:root>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs