hi,
maybe you are looking for the varStatus attribute?
this is an example...
<c:forEach items="${roleGp.rolesInGroup}" var="roleName" varStatus="i">
<td><c:out value="${roleGp.valRange[${i.getCount}]}"/></td></tr>
</c:forEach>
As far as i remember there are a couple of informations availbale on that
attribute...
You could also use the Magnl API to collect all the children of the parent
node of your images ;)
regards
rainer
Martin Algesten wrote:
>
> First off a great big THANKS! for this software. So far I've been
> extremely productive in setting up templates and getting everything
> "just right" - not many surprises at all despite the complexity of the
> domain.
>
> And now to a simple one...
>
> I'm tearing my hair out here: How do I count the number of paragraphs?
>
> I have a page I call an "image collection". Each image is added as a
> paragraph. Now I want to randomise which image to show - but how do I
> know how many images I have? How do I count the paragraphs?
>
> M
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
> ----------------------------------------------------------------
>
>
>
--
View this message in context:
http://www.nabble.com/count-paragraphs-tp20738681p20759301.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
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------