Navigation bar non-active?

Permalink
Hope this is not a stupid question - new to C5 here. How do you make a navigation bar NOT reference a page and act as title only to sub pages? Have gone through tutorials, dashboard, and properties and just can't seem to find a way to do that. Any help would be greatly appreciated.

 
Adreco replied on at Permalink Reply
Adreco
Hi,
I believe some of the add-ons (like megamenu) have redirect to first child as a built in option. To modify it yourself, I think you'll find the discussion here helpful http://www.concrete5.org/community/forums/customizing_c5/redirect-p...

Hope this helps out


Adrian
Arvixe Web Hosting / Concrete5 Community Liaison |
http://www.arvixe.com/concrete5_hosting.............
pjsouthflorida replied on at Permalink Reply
Thank you for your input! Much appreciated!
ronyDdeveloper replied on at Permalink Best Answer Reply 1 Attachment
ronyDdeveloper
I'm attaching a custom autonav template for that. You just need to follow the below steps:

1. download the .zip and extract it to your C5 installation directories blocks folder.

2. The add the following page attribute (via Dashboard -> Pages and Themes -> Attributes):
a) Handle: replace_link_with_first_in_nav
Type: Checkbox
Functionality: If a page has this checked, clicking on it in the nav menu will go to its first child (sub-page) instead.

b) Handle: exclude_subpages_from_nav
Type: Checkbox
Functionality: If a page has this checked, all of that pages children (sub-pages) will be excluded from the nav menu (but the page itself will be included).

c) Handle: disable_link_in_nav
Type: Checkbox
Functionality: If a page has this checked, it will appear in the nav menu but will not be "clickable" (will not link to any page).

d) Handle: nav_item_class
Type: Text
Functionality: Whatever is entered into this textbox will be outputted as an additional CSS class for that page's nav item (NOTE: you must un-comment the "$ni->attrClass" code block in the CSS section below for this to work).

Note: You need to use point c in your case.

3. Go to sitemap & choose the page which you want not to have link. Click on it and choose properties, then Custom Attributes & select Disable link in nav checkbox. Then save it.

4. Edit the menu block from any page & choose custom templates. Then select Exclude Parent Link.

This is the process by which you can make the parent menu as non linkable.

FYI The package is written by @jordanlev

Rony
pjsouthflorida replied on at Permalink Reply
Thanks for the help Rony - tried a couple of those handles and that may do the trick for me!
waroly replied on at Permalink Reply
Hi Rony,

The extracted file placed as such:

Concrete5 root installation--> blocks--> autonav--> templates--> exclude_parent_link--> view.php

I am able to select "exclude_parent_link" when I place the autonav block on the page I want to affect. I have also created the attribute "disable_link_in_nav", but unfortunately that custom attribute does not appear as an checkbox option.

I am using the sooperfish menu on the pages that I want to be clickable. Could there be a conflict by having the two custom templates on the same site?

Thank you,

waroly
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
The package that I've attached is for default C5 autonav. I haven't tested it with Superfish.

Fyi You can add thousands of templates with different name and it won't conflict.

Rony
mcekl replied on at Permalink Reply
This little gem would seem to do exactly what i want with the auto-nav block.... but has anyone tried it with Version 5.7 ?