In a Drupal menu you can enter the menu title and the link: If you enter the name of a node, the autocomplete field of the menu link automatically recognizes the node and you do not not have to enter the link path manually.
This is why you can change the title of your node which changes the alias path of the node, and you do not have to change the menu link to this node.

But group pages are no nodes. If you want to add a group page to a menu link, you have to put in the link path manually and if the group path changes you have broken menu links.

Can we make group pages available in the autocomplete link field of the Drupal menus system?
Same for autocomplete field of a link field (which is in core for D8).

This is a nice to have feature.
Any ideas for a solution?

Comments

drupalfan2 created an issue. See original summary.

maaty388’s picture

Hi, I am working on it so far problems come in entity autocomplete...
I created a Menu setting form item (checkbox) in Group Type edit settings if you enable this option later on entity autocomplete alter you get all groups of this type... I implemented module from here. But I cant insert URL from the group into entity autocomplete. Groups are available in entity autocomplete but when u choose the group and then save it I get an error that I need provide a valid link. So here is the problem. I don't have enough knowledge to continue from here.

johnwebdev’s picture

Correct me if I'm wrong, but I believe it's a limitation in the Entity autocomplete and Link module in core and currently not possible.

https://www.drupal.org/node/2423093

maaty388’s picture

Status: Active » Postponed

@johndevman when they add this feature to core then I can continue working on this issue

MrPaulDriver’s picture

I too would like to see this.

It looks like efforts are being made to get the core issues resolved for 8.6 - Lets see if they pull it off

MrPaulDriver’s picture

@drupalfan2

and if the group path changes you have broken menu links.

As with any entity you can just provide the machine path and ID to the menu system and this way it does not matter if the title or clean url changes.

For example;

/node/1
/group/1

kclarkson’s picture

I Would also like to have this feature as I am struggling with a solid menu solution for Groups.

Another issue I have had is when using Pathauto in the groups operations. After the links change there are some broken links due to the reference plugin.