Fork me on GitHub

count

An article by Gaspard Bucher

find node count with a pseudo sql query

find node count with a pseudo sql query

see find

This returns the number of nodes given a pseudo sql query. Example:

<r:if test="count('pages') > 1"> show select tabs </r:if>
<r:if test='count.to_i > 1'>

You can also use “size” in a list context Array, to get the number of elements in the list.