I need to develop a kinda Sitemap on the bottom of my website, with all menu items and I was wondering if I can do it with Views.
I actually need to display each main menu item on a different column and add the submenu items to each column.
I realized anyway that Views has not access to Menu items, but only to nodes, or am I wrong ?
thanks
I don't believe you can do this with views. It sounds like you just need to have the top level menu "expanded" in menu configuration and style accordingly. For creating something trickier, that involves multiple levels, check out the menu block module (http://drupal.org/project/menu_block).
Related
I've created a layout with "Panels" to replace my frontpage and I have some doubts about how to populate the different panes. All my websites until now are "blog-like" websites with a typical "CMS-blog" look-like and I'm not sure what's the "Drupalish" way of solving some problems...
I'm trying to create a footer with the typical columns of links, just like the one that you can see in the bottom of "www.drupal.org". I've created 3 panes in my layout, in the footer, to "host" those links: left-link-pane, center-link-pane, right-link-pane.
My doubt is about how to populate those 3 panes with the links without creating HTML blocks...
In a youtube video I found somebody that created 3 custom full-html blocks with CSS + ul + li + a tags. That works, but It doesn't seem the right way of doing thinks in drupal.
What's the right way of doing this?
I had an idea but I'm not sure if it's the right way to do it, or if somebody could suggest me how to do it:
In my panel layout, create 3 panes to host those links (links_left, links_center, links_right)
Create a vocabulary with 3 terms (tags) named Links_left, Links_center, Links_right
Create a new content-type named "FooterLinks" with title, body, link_text, link_url and weight.
Create for each pane a View. Example: for the left pane, a view getting all FooterLinks tagged as "Link_left" and sorting them by their "weight", linking to "link_url".
Use CSS Injector or a custom CSS file in the theme to give style to the results.
Maybe the above is not even possible to do with views... maybe it has to be done with "Menu entries"?
P.S. I found a module to create footers from the primary and secondary menus, but I can't control output and I would like to know how to do it.
The Drupal way would be to use Menus.
Your best bet would be to use the Footer Sitemap module.
It lets you choose which menu(s) to put in the footer. And then which of the links in each to display.
So you could use a mix of your primary navigation and secondary navigation menus or create a new menu.
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.
I only want to show the pages that do not have parents, and link the other pages from their parent pages.
I want to have a simple main menu: Home | Pages | About | Contact
About 8 pages are linked from the Pages page. At the moment, the menu has 12 items, which deforms the layout pretty badly.
I have tried making the pages private, unpublished, and other options, but that doesn't seem to be the way to do it. Is there a way I can just have only parent pages linked in the main menu?
You can edit the menu (under the appearance tab in the dashboard). (you may need to add a new menu and assign it to the main navigation menu. It sounds like you have the defaulted menu set-up.
Once you've added a menu and assigned it to the main navigation, you can uncheck "automatically add top-level elements" or its equivalent, and add/remove menu items. You can also change their hierarchy (independent of actual page hierarchy).
It's all so easy these days. Just Go to appearance>menus>click the little triangle next to the listed page name>click remove> don't forget to save ... all done!
Maybe you didn't set up a custom menu yet. Set up a custom menu first with the desired pages / links. If it doesn't show on your site, check custom memus are enabled in your theme.. this will help you setting up a custom menu: http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/
I'm using WordPress Menus for my main navigation, at the moment it's displaying the navigation alphabetically. How can I get it to display my menus in the order I have them arranged in WordPress?
Thanks in advance!
Appearance > Menus
Select the menu you want to edit (this view is editing Main Nav)
Select that pages you want to include in your menu from PAGES on the left
Add To Menu
NOTE: You can also add post categories and nest pages within each other like shown in the image below. Make sure that your template is set up for menu nesting if you do this.
If you are talking about pages in your menu, go to the editing screen and look for Page Attributes (typically on the lower right). You will see PARENT, TEMPLATE and ORDER. In the order section, you can assign a number to the post, and they will appear in the order you define.
Hope this helps
In the menu page, you should just be able to drag the items into the order you want.
I'm using 2 different menus in 2 different blocks. They are enabled / disabled depending on the the pages users arevisiting.
Now, I have an issue with the breadcrumbs: they only work with the main menu and not the second one.
I need to automatically have the breadcrumbs the other menu as well.
thanks
Drupal's menu system sets only one active menu at a time: if you're trying to have two breadcrumbs at the same time on the same page, you're going to need to use menu_set_active_menu_name() to do some juggling back and forth.
However, if you're just trying to have one show up, consider using the Menu Breadcrumb module, which automatically sets the active menu based on the page. You also have the ability to set menu priority for pages that exist in more than one menu.
This question is not strictly programming related, however:
Drupal breadcrumbs follow the menu-items as they are enabled. Regardless of whether the menu-items are visible, and regardless of what menu(containers) hold the menu. Items that are not in the menu (such as nodes!) will not have a breadcrumb.
That said, there is an exception, modules can override the breadcrumb with drupal_set_breadcrumb(), if they do so, the last one to set the breadcrumb gets to set the breadcrumb. E.g. taxonomy module sets the breadcrumb on taxonomy-pages.
You could set the breadcrumbs hardcoded in a module.
You should investigate why breadcrumbs don't follow your menu's in this case.
You could investigate modules that allow tweaking the breadcrumb behaviour, such as hansel