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

jmuzz’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

I 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.

nicopulse’s picture

I search for the same.

I create menu with code here, but after : how to attach to a block emplacement ? with specific role access, etc??

$menu = array (
     'menu_name' => 'menu-principal', // Drupal menu machine name
     'title' => 'Menu Principal', // Drupal menu display name
     'description' => ''
);
menu_save ($menu);7

//AND AFTER ???