Jawsh
Active member
I would like to include a template before and after every node and category if they exist.
- include category_before_{$node.id}
- include category
- - include node_before_{$node.id}
- - include node
- - include node_after_{$node.id}
- include category_after_{$node.id}
So, unless (for instance) catagory_after_32 exists, it does nothing.
But if it does exist, go on to include its content.
Is this possible? Is there a better way to do this task?
- include category_before_{$node.id}
- include category
- - include node_before_{$node.id}
- - include node
- - include node_after_{$node.id}
- include category_after_{$node.id}
So, unless (for instance) catagory_after_32 exists, it does nothing.
But if it does exist, go on to include its content.
Is this possible? Is there a better way to do this task?