From 364a29063c4b538e339e911755909003d65c8d18 Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Fri, 20 Dec 2019 14:22:48 -0500 Subject: [PATCH] ISTWCMS-3380: fixing more of the menu twig --- source/_patterns/04-components/menu/menu.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/_patterns/04-components/menu/menu.twig b/source/_patterns/04-components/menu/menu.twig index bcf7493e..970c2a5f 100644 --- a/source/_patterns/04-components/menu/menu.twig +++ b/source/_patterns/04-components/menu/menu.twig @@ -61,7 +61,13 @@ } %} <li {{ add_attributes(additional_item_attributes) }}> - <a href="{{ item.url }}" {{ add_attributes(link_attributes) }}>{{ item.text }}</a> + <a href="{{ item.url }}" {{ add_attributes(link_attributes) }}> + {% if item.title %} + {{ item.title }} + {% elseif item.text %} + {{ item.text }} + {% endif %} + </a> {% if item.submenu %} {{ menus.menu_links(item.submenu, attributes, menu_level + 1) }} {% endif %} -- GitLab