By quicksand on
Hello Drupalers,
Please, I need your help on a problem.
I try to create in my Drupal site a dynamic menu (Where Item's links change depending on pages).
Here is the idea :
I try to put in my site a range of vehicles, each page of vehicle has its own menu, the menu contains the following items :
- General Presentation
- Photo Gallery
- Prices
There are several models of vehicles, it would mean that each vehicle must have its own page and its own menu.
That would be silly of course to create a menu for each vehicle, it would be a waste of time and updates will be a real burden!
Is there a Drupal module to do this ?
Can views module helps to create this dynamic menu ?.
Thanks a lot for your help !
Comments
Try Nice Menus
Hi
You could trythis http://drupal.org/project/nice_menus
Its a dropdown menu.
Ortaga
Thanks to you, But read
Thanks to you,
But read carrefully my question.
menu
Hi quicksand,
try this concept :
in your hook_menu add url with something like this :
/vehicle/%/% -> ex url: /vehicle/honda/civic
for this menu item specify the page callback and page arguments something like this :
'page callback' => 'vehicle_page_render',
'page arguments' => array(2,3), -> explained : argument 2 for type (honda), and argument 3 for model (civic)
in your function vehicle_page_render will be this one :
function vehicle_page_render($type, $model) {
........ code here to render the page per vehicle model depend on the parameters.
}
Please let me know if you have questions : michael@project-ekimo.com
Use block
Use block and put that block into a page...