| toc | |
| <mm:ageconstraint>
In MMBase, objects on default do not have a `creation time' field. But the `number' field can be used to estimate the age (in days), because for every day a `day mark' is remembered. This tag gives easy access to this functionality. Note that in MMBase 1.8 it is possible to define creation and lastmodified time fields of DATETIME database type. Age-constraints can then also be accomplished by constraints on the date parts of such a field. (since: MMBase-1.7) |
|
| see also | listnodescontainer | listcontainer | part attribute of constraint |
| attributes |
|
| querycontainerreferrer attributes | |
| containerreferrer attributes | |
| example 1 |
<mm:listnodescontainer type="typedef">
<mm:ageconstraint maxage="100" />
<mm:listnodes>
<mm:field name="name" />
</mm:listnodes>
</mm:listnodescontainer>
|