Hey there,
I have defined my own Subpages (Neos.Neos:Document). Now I need to integrate two buttons to go to the prev and next Document, if there is one.
I can’t really find a useful example. While I am trying to use the Flow-Query: next() it gives me weird results:
next = Neos.Fusion:Tag {
@process.tmpl = ${'<div class="prev"><em>' + value + '</em></div>'}
tagName = 'a'
attributes.href = NodeUri {
node = ${q(node).next()}
}
content = ${q(node).next().property('title')}
}
The weird thing here is, that in the case of the property title, I am getting the correct title of the next Document, on the other hand, the created link wrongly points to the active Document (and not the next one).
Could somebody please explain this behavior and tell me what I need to do differently?
Thanks!
Robin