Skip to content
Snippets Groups Projects
Commit 77bf1035 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3445783 by Liam Morland: Add item prefix, infix, and suffix to book-tree template

parent a448c269
No related branches found
No related tags found
1 merge request!2Issue #3445783 by Liam Morland: Add item prefix, infix, and suffix to book-tree template
Pipeline #273635 passed
......@@ -16,6 +16,9 @@
* - is_collapsed: TRUE if the link has children within the current book tree
* that are not currently visible.
* - in_active_trail: TRUE if the link is in the active trail.
* - prefix: Display before the item.
* - infix: Display in the item between the link and the child items.
* - suffix: Display after the item.
*
* @ingroup themeable
*/
......@@ -38,10 +41,13 @@
{% endif %}
{% for item in items %}
<li{{ item.attributes }}>
{{ item.prefix }}
{{ link(item.title, item.url) }}
{{ item.infix }}
{% if item.below %}
{{ book_tree.book_links(item.below, attributes, menu_level + 1) }}
{% endif %}
{{ item.suffix }}
</li>
{% endfor %}
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment