| toc |
| <mm:listnodescontainer>
Surrounds a listnodes tag and provides a query object.
(since: MMBase-1.7)
|
| see also | listnodes | querycontainerreferrer |
| attributes |
-
type
see: type attribute of listnodes
-
path
Though a relatednodescontainer is to query real nodes (so not clusternodes), this does not
mean that there can only one node type in the query. Only one element of this path is
actually queried, but constraints and sort orders can be applied to the other ones.
see: path attribute of list
-
searchdirs
Per element in the path you can indicate an alternative `searchdir' (source, destination or both)
-
element
The `element' of the path to be queried. This defaults to the first element, but the other
ones can be pointed to as well.
see: element attribute of node
-
id
Id for reference by subtags and reuse.
-
nodes
(since: MMBase-1.7.1)
see: nodes attribute of list
-
clone
(since: MMBase-1.8.6)
This is the same as 'referid' attribute, but ensures that the query is cloned first, so the original query remains unchanged.
The query will implicitely be cloned, also when using 'referid', when changes are made to an already 'used' query.
-
markused
(since: MMBase-1.8.6)
If this attribute is used (and set to 'true') then the query will be marked 'used' in the
doEndTag. This ensures that the query cannot be changed before cloning it.
|
| querycontainer attributes |
|
| container attributes | |
| contextreader attributes |
|
| contextwriter attributes |
|
| contextreferrer attributes |
|
|
example 1 |
<!-- 'real' nodes -->
<mm:listnodescontainer type="news">
Total number of nodes before constraint: <mm:size /><br />
<mm:constraint field="title" operator="LIKE" value="%XML%" />
Total number of found nodes: <mm:size /><br />
<mm:listnodes>
<mm:nodeinfo type="gui" /><br />
</mm:listnodes>
</mm:listnodescontainer>
|
Total number of nodes before constraint: 183
Total number of found nodes: 2
XML based MMBase distribution
XML configuration project almost finished
|
|