Navigation Menu Setup

Events happening in the community are now at Drupal community events on www.drupal.org.
shinz83's picture

I want to include sub-navigation menus in the right sidebar of my site. It doesn't appear that OpenPublish is setup to easily do this with its CSS. Can someone help me out? Recommend a module or CSS style?

I would really like to have the sidebar menu to reflect the same styling as the "Most Commented" type boxes.

Comments

Create a new menu. Put links

ksweet's picture

Create a new menu. Put links in it. Then in one of the template files, depending on where you want to put it, you'll need to print your new menu in a div. You can look at how the other menus are printed as an example. As for the styling, just copy the css from that other block.

Further Explanation

shinz83's picture

This was a big help. Has anyone done this before? Is there a way to do it without hacking into the core files? I want to be able to make updates and not mess up my site.

I feel like there should be a way to reflect 2nd, 3rd, and 4th level navigation without having to tweak core files.

What am I missing?

The problem is that you'll

ksweet's picture

The problem is that you'll need to specify a new div and some kind of class or id so you can style it. You're not going to be able to do this without touching the template file. But don't think of these template files as a "core" file. Editing your theme's template is much simpler than it sounds and perfectly okay to do (whereas editing drupal's core files is a big no-no). Just make sure you subtheme the openpublish theme before you make changes like this.

OpenPublish Theming Documentation

GreenSkunk's picture

Just wanted to add to what @ksweet had mentioned.
@shinz83: Create a sub-theme. Have you read the OpenPublish Theming Documentation ? IMO it is a great read for any Drupaler.

If you have a modules template file that you want to override then just copy that file to your custom sub-theme. Read more about overriding themable output (tpl files, styling and CSS)

It is a damn poor day when you don't learn something.

Subtheme does not seem to work for menus in OP 2.x

Compel's picture

The problem with using a subtheme for OpenPublish 2.x is that the menu CSS is buried in the OpenPublish Core folder under the menu module. I'd like to create a subtheme but can't figure out how to override the CSS when it's in a different folder tree than the openpublish_theme theme.

Not sure if I should move the Menu Module's CSS folder into the theme and override it that way or if there is some better approach. Suggestions welcome.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: