... | in breadcrumbs_footer.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<macro name="breadcrumbs_footer" requires="node_page">
<n.comment>
Variant of Nabble-provided breadcrumbs. CSS class instead of ID; specialized for page footer.
</n.comment>
<n.page_node.>
<n.if.is_in_app>
<then>
<n.get_app_node.>
<n.if.both condition1="[n.not.is_root/]" condition2="true">
<then>
<n.comment>Only show 2nd (footer) breadcrumb if not at app root.</n.comment>
<tr>
<td colSpan="2">
<span class="breadcrumbs weak-color nowrap">
<n.get_app_node.>
<n.ancestors_list. order="reverse">
<n.loop.>
<n.current_node.node_link class="node-id-[n.current_node.id/]"/>
<span> › </span>
</n.loop.>
</n.ancestors_list.>
<n.node_link class="node-id-[n.id/]"/>
</n.get_app_node.>
</span>
<n.breadcrumbs_menu/>
</td>
</tr>
</then>
</n.if.both>
</n.get_app_node.>
</then>
</n.if.is_in_app>
</n.page_node.>
</macro>
|
Free forum by Nabble | Naml |