Author: michiel
Date: 2010-03-18 16:38:00 +0100 (Thu, 18 Mar 2010)
New Revision: 41517
Modified:
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/pages.tagx
Log:
online attribute
Modified:
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/pages.tagx
===================================================================
---
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/pages.tagx
2010-03-18 15:30:02 UTC (rev 41516)
+++
speeltuin/mihxil/portal/trunk/src/main/resources/META-INF/tags/mm/portal/pages.tagx
2010-03-18 15:38:00 UTC (rev 41517)
@@ -5,13 +5,18 @@
version="2.0"
>
<jsp:directive.tag
- description="Calculates the currently to be used page, it looks at
related 'pages' object which are related to the 'current' node" />
+ description="" />
<jsp:directive.attribute
name="date"
description="the date for which the current page object must be
calculated. Defaults to 'now'. For possible syntaxes see:
http://www.mmbase.org/api/org/mmbase/util/DynamicDate.html"
/>
+ <jsp:directive.attribute
+ name="online"
+ type="java.lang.Boolean"
+ description="Whether or not to only list online pages. Defaults to true."
+ />
<jsp:directive.attribute fragment="true" name="constraints" />
@@ -32,9 +37,11 @@
</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" />
+ <c:if test="${empty online or online}">
+ <mm:constraint field="online" operator="lt" value="${now}" />
+ <mm:constraint field="offline" operator="gt" value="${now}" />
+ <mm:constraint field="show" value="true" />
+ </c:if>
<mm:sortorder field="online" direction="down" /> <!-- show the one which
went online most recently -->
<jsp:invoke fragment="constraints" />
<mm:listnodes>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs