...I have the main header with the primary links which never changes regardless of the section... on the menubar on
the left
or right of the page I will have a submenu which will change whenever
I go
to a different section......
Can this be achieved using drupal...? If so how....?
You can use a custom block with php if-then conditions or switches. Not sure if there is an easier way.
If you don't know how to code, it is perhaps better to make separate blocks with the menu links in them and only set their visibility in block admin pages, otherwise you can make one block with different PHP conditions to display the links as they should be per page.
Hope this helps.
Regards,
Kobus
On 6/15/06, Kobus Myburgh ITBJDM@puknet.puk.ac.za wrote:
...I have the main header with the primary links which never changes regardless of the section... on the menubar on
the left
or right of the page I will have a submenu which will change whenever
I go
to a different section......
Can this be achieved using drupal...? If so how....?
You can use a custom block with php if-then conditions or switches. Not sure if there is an easier way.
If you don't know how to code, it is perhaps better to make separate blocks with the menu links in them and only set their visibility in block admin pages, otherwise you can make one block with different PHP conditions to display the links as they should be per page.
If you use pathauto to create your paths for you then you could set up a system that splits your "different sections" into different URLs on the site such as:
forum/ blog/ news/
And then create blocks appropriate for those sections and in the block visibility settings set the blocks to only show on forum/* pages or blog/* pages as appropriate.
With pathauto it's possible to separate by either node type (as shown above) or by the lowest weighted taxonomy term in the lowest weighted taxonomy.
Regards, Greg
Path auto?....Let me find out what it is and how to use it... Kobus, I was unable to separate the menus using block admin pages...
Thanks.
On 6/15/06, Greg Knaddison - GVS Greg@growingventuresolutions.com wrote:
On 6/15/06, Kobus Myburgh ITBJDM@puknet.puk.ac.za wrote:
...I have the main header with the primary links which never changes regardless of the section... on the menubar on
the left
or right of the page I will have a submenu which will change whenever
I go
to a different section......
Can this be achieved using drupal...? If so how....?
You can use a custom block with php if-then conditions or switches. Not sure if there is an easier way.
If you don't know how to code, it is perhaps better to make separate blocks with the menu links in them and only set their visibility in block admin pages, otherwise you can make one block with different PHP conditions to display the links as they should be per page.
If you use pathauto to create your paths for you then you could set up a system that splits your "different sections" into different URLs on the site such as:
forum/ blog/ news/
And then create blocks appropriate for those sections and in the block visibility settings set the blocks to only show on forum/* pages or blog/* pages as appropriate.
With pathauto it's possible to separate by either node type (as shown above) or by the lowest weighted taxonomy term in the lowest weighted taxonomy.
Regards, Greg
-- Greg Knaddison | Growing Venture Solutions Denver, CO | http://growingventuresolutions.com Technology Solutions for Communities, Individuals, and Small Businesses -- [ Drupal support list | http://lists.drupal.org/ ]
Has anyone set up dynamic menus in Drupal like this:
????
The critical element here is that since the sub-elements expand in the left navigation when you go to a section or subsection, it is possible to use the entire navigation without javascript (though with javascript you are able to jump directly to any subsubitem).
Assuming that no one has done this yet, any suggestions on the best modules to use a basis for code hacking to achieve this?
-- Randal
Randal wrote:
Has anyone set up dynamic menus in Drupal like this:
????
The critical element here is that since the sub-elements expand in the left navigation when you go to a section or subsection, it is possible to use the entire navigation without javascript (though with javascript you are able to jump directly to any subsubitem).
Assuming that no one has done this yet, any suggestions on the best modules to use a basis for code hacking to achieve this?
There are several implementations of this floating around.
Mine is: http://www.angrydonuts.com/article/collapsing_menus