Drupal 7 Menu Parent module alternative - drupal

I am currently using the Node Collection module to handle parent child relationships on my site. This module creates a menu in the form [parent , child-1, child-2 ... child-n] is there a way for me to attach this menu to an item in the main menu in drupal 7? And if so would this work with the Menu Firstchild modules?

The menu system in drupal 7 isn't very good.
Instead of forcing node collection on the main menu i suggest you don't use the main menu block.
Use a node collection block, if exist, or create your own custom block using hook_block_info & hook_block_view.

Related

Wordpress add child pages to menu during runtime

I want to build a large menu(more than 100 items) in admin panel, there are server post variable limit. So i have created a menu with parent pages only. I want to add child pages to parent pages in menu during runtime. I am using wp_nav_menu function. Is it possible with walker class or any other solution.

How to link top and side navigation in wordpress?

I have following navigation structure, which i want to implement in wordpress:
(Home / About / news / Contact) are in top navigation, whereas all sub links are in sidebar.
How can i create this type of navigation in wordpress. i.e. How can i display first level navigation in header and second level navigation in sidebar.
Follow these steps:
First create a main Navigation to your site without child pages and
add it to the theme.
Then create a new menu with child menus only and save it.
Now goto widgets section and from there drag Custom Menu from left
side and add to your sidebar.
Then select your child menu and click save.
Thats all. :)
Check this WordPress Codex section for creating menu tutorial
Cheers!!!
I found these plugins helpful:
Simple Section Navigation
http://wordpress.org/extend/plugins/simple-section-navigation/
It allowed me to create the side nav based on the hierarchy of the pages and their children.
I wanted a bit more control though because I didn't want some of the parents to have their own page ... just a heading for their children. So instead, I'm using this plugin (for the Genesis Framework).
Genesis Simple Sidebars
http://wordpress.org/extend/plugins/genesis-simple-sidebars/
This allows me to create as many sidebars as I want and add custom menus to those. I'm new to this, so maybe I'm taking a long route, but so far it seems to be doing what I want it to.

Creating Drupal custom menu and retrieve item in a template page

I would like to create a menu in Drupal backend, a custom menu which have xxx items.
How can I use the Drupal API to retrieve it in a template.tpl.php, and display items?
have a look at this page at drupal.org: Menu theming
-J
I created a custom menu using this method as well as some related ones. You will need to generate a custom module for your menu. You won't retrieve it in template.tpl.php but rather as a block (by creating a custom module). I would suggest you start there first.
I would do the following:
Create a custom menu
Create a new regions in your template .info file
Go to your theme and print the new region where the menu should seen
Go to the blogs and activate the new menu in the new region area
Maybe this should work for you.

No reaction for Menu trail condition for Drupal Context module

I'm using Development Seed's fantastic Context module (version 6.x-2.0) for Drupal 6 on a site that I am developing. Everything is working fine except in the case where I need to set a context for a particular menu trail.
Perhaps I am misunderstanding the menu trail condition, but the context only exists when the defined menu item is active and not for any of its child menu items. Should it not be following the menu trail? The menu items only exist in the primary links, so there should be no conflict.
Is it possible to hook into the context to make the menu trail part work if not through the Context UI interface?
This is because Drupal, by default, sets the Navigation menu to the active menu: it affects all manner of things from Context to breadcrumbs.
You can test this by changing your condition to check a menu item in Navigation: it will fire on child menu items.
To get it to work on other menus, you need to enable or write a module that utilizes menu_set_active_menu_name to set the active menu to one where the page is a member. The module Menu Breadcrumb accomplishes this task with no configuration.

Node titles as menu items in drupal

i've a node type "Gallery" and a menu title "Gallery" which shows all the available galleries with the help of views.
Now, when the user creates a new gallery, i want the name(title) of that gallery to add as a child element to the "Gallery" menu item..
is there any module for that?
thankx..
Module Auto Menu. Here is an excerpt from its project page:
... automatically generates menu entries on node creation/edition. Parent menu item can be specified on a per content type basis.
This module acts when the menu section of a node is left empty only. So, users can still organize menus manually. Moreover, default setting for content types is to not create menu items automatically.

Resources