Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# dagda1 5/30/2006 9:19 AM
Hi,

I appear to be bombarding with questions today but I am trying to use Cuyahoga to manage our company site twentysixlondon

From what I can gather, you can only add custom menus to the root node of a site.

Can anyone point, I need to add custom menus to specific pages and have them only appear on specific pages. Can anyone tell me if it is possible to achieve this without writing a custom module. I would like to use the Edit Custom menu functionality for this.

Is this possible?

Thanks

Paul
# martijnb 5/30/2006 9:35 AM
A possible hack is to create multiple templates: one with a placeholder for the menu and one without. You can safely use a template without the menu placeholder. The menu won't appear.
# dagda1 5/31/2006 7:05 AM
Hi,

I achieved what I wanted to do by unfortunately changing the source. I am very loathe to do this but I did the following:

- I took off the restriction in NodeEdit.aspx that only allows menus to be added to the root node.
- I created a new project called [project].Cuyahoga.Extensions where I created a subclass of PageEngine.
- I made the INodeService member of the PageEngine class protected.
- I made the LoadMenus() method and the GetMenuControls() method protected and virtual.
- I override the LoadMenus() method by checking for a menu with each node.
- I changed the default.aspx on my site to use the subclass page engine.

I am always wary of changing the source but hopefully the way I chose meant as little pain as possilble.

Is there a better way of doing this?

Thanks

Paul






# martijnb 5/31/2006 1:08 PM
dagda1Is there a better way of doing this?

Probably yes. I'm now wondering what the reason was for the root node restriction on the menu's.
The ideal situation is a separate admin section to manage menu's where you can assign the nodes that should appear in the menu, but also the nodes in which the menu should be visible.