find a node with a query |
|
| see context, count, zena 1.0 | |
This method is the equivalent of the context method but is used from RubyLess:
<r:img src='find("icon from project")'/>
You can also use this to move to a fixed node.
This is bad style because you have obscure numbers in your templates and you cannot reuse them between projects.
<div do='find(45)'>...</div>
Better options:
You should define a relation on the root node instead:
<div do='root' do='main_gallery'>...</div>
Or even better: define a class.
<div do='main_gallery' in='site'>...</div>