I hope it’s ok to post this here – as it seems to be quite specific to a certain module (we_megamenu).
I ‘m using: Drupal core 8.4.4
And this post is about this module: we_megamenu, version 8.x-1.0-rc2.
A bit of background:
I ‘m trying to implement a megamenu, and I was quite disappointed because I haven’t been able to find a (fairly) easy and intuitive module to work with.
Anyway, I stumbled across we_megamenu, which seems the best I ‘ve used so far.
However, as it’s often the case in megamenus, the first row of a multi-column ‘menu’ would be titles, and not actual links.
I searched around and saw that this is implemented via special_menu_items module, which is now in core for Drupal 8.
Reading through question 229376, it seems straight-forward, and all you got to do is provide route:<nolink>
to achieve this.
I did this for a couple of menu items that I want to be there as simple text and no links. Although structure -> menu accepts this and lists those items as plain black text not linking anywhere, my megamenu still shows them as links. I have cleared cache etc., nothing changes.
I have played around with another module that can implement megamenus (Superfish) which does ‘understand’ route:<nolink>
(those items are then presented as plain text in the menu) – but I found it much harder to use in general.
All in all, does anyone know how I can get we_megamenu to show some menu items as simple text and no links?
Should I post similar questions here, or it’s better to open relevant issues in the module’s page? I ‘m new to Drupal and trying to figure it out.
Thanks for your time.
PS – thread in question 229376 says at the end:
To create a menu item without link in a custom module add to [module_name].links.menu.xml: url: 'internal:#'
.
Could this be relevant to what I ‘m trying to do?