Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What's the problem ?
When i use Linkit search plugin and i want to support menu_link.
The User class is used for search Menu_link and the user class search user by name, The menu_link class should search menu by link_title.
Correction
I have create a new class with menu_link name and i search menu_link via the new class.
Patches will be send soon.
Comment | File | Size | Author |
---|---|---|---|
#7 | menu_link.class_.zip | 921 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedAdd patches promised.
Please, check it quickly
Best regards.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedI forgot to attach the new file created by the changes.
File path : linkit/plugins/linkit_search/menu_link.class.php
Sorry.
Comment #8
anonSound like a feature request and not a bug.
Comment #9
anonComment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedIt's a really a bug because the menu_link plugin is already in the linkit module but don't work.
Comment #11
anonNo, there is no "menu_link plugin" in linkit core. That version are you using?
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedHi,
Effectively, the plugin is not present. However, when using modules like "xmlsitemap" or "entity_menu_links" an entity 'menu_link' is created so a plugin "menu_link" appear but does not work without this patch. So it is in this case really a bug.
but also menu_link plugin is much more practical because Linkit can do search on menu links (internal or external) and not only on node. And in this case this patch is also a new feature but need "entity_menu_links".
sorry for the late reply.
Comment #13
anonWhen I test this, I get a lot of results that will put an empty url into the url field.
Also, the implemention of the menu_item entity in xmlsitemap is really messy I think.
Comment #14
delacosta456 CreditAttribution: delacosta456 commentedhi
any plan of update about this please ?
Thanks