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.
I have three different field collection items to a node. Instead of showing have a user to scroll down to add the field items i want to create a custom module that creates a menu block which will list the field collection title and a link linked to the page to add a field collection item of all field collection items i have. I have tried everything but nothing seems to work, please help
Comments
Comment #1
jmuzz CreditAttribution: jmuzz commentedI don't know if you will be able to put them in a menu block because menu items can only have a single URL as far as I know. You would be able to create a block that generated the correct links based on the current page if you use the PHP code text filter or create a normal block in your module.
Comment #2
nicopulse CreditAttribution: nicopulse commentedI search for the same.
I create menu with code here, but after : how to attach to a block emplacement ? with specific role access, etc??