I would do it in a scriptlet - about as follows:
<%
ArrayList it =
(ArrayList
)Resource
.getCurrentActivePage().getContent("nameOfCollection").getChildren() ;
Collections.reverse(it);
pageContext.setAttribute("myCollectionSize", it.size());
pageContext.setAttribute("myCollection", it);
%>
beware: not testet, just made up - see if it works for you.
HTH, Thomas
On 30.10.2008, at 09:28, Lrkwz wrote:
Hello,
I should create a paged news page. News in my case are small
articles
which can be handled by simple text paragraphs cointained in a
collection
within a single page.
How can I use the contentNodeIterator to:
1. page paragraphs - I know begin/end attributes for the custom tag
but I
cannot find a way to obtain how many objects are there in the
collection
2. revert order paragraphs in the collection
Thank you!
--
View this message in context:
http://www.nabble.com/Paged-news-tp20231805p20231805.html
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------