Setup of Auto-Nav Block
Permalink
I am loving Concrete5. Especially the way I can make a quick edit to my site anywhere I can find a computer. My first site is up and running, and I am still trying to figure out how to best configure one of the blocks.
The one I would like to better understand is the Auto-Nav block.
I am unable to find my desired setup on my three column layout pages. On these pages I have a sub-navigation menu on the left menu.
However my sub menu is only displaying the pages underneath the primary page.
Whatever settings I chose I am only able to display the following in my left navigation menu:
About Us
Hope Has a Name
Our Staff
Board of Directors
President's Message
Contact Us
Guestbook
Our Links
My question is, is it possible to include the main page and all of its subpages in the Auto-Nav so I could display the following in my left navigation menu:
Overview
About Us
Hope Has a Name
Our Staff
Board of Directors
President's Message
Contact Us
Guestbook
Our Links
Thank you in advance . . .
Here is my environment
The one I would like to better understand is the Auto-Nav block.
I am unable to find my desired setup on my three column layout pages. On these pages I have a sub-navigation menu on the left menu.
However my sub menu is only displaying the pages underneath the primary page.
Whatever settings I chose I am only able to display the following in my left navigation menu:
About Us
Hope Has a Name
Our Staff
Board of Directors
President's Message
Contact Us
Guestbook
Our Links
My question is, is it possible to include the main page and all of its subpages in the Auto-Nav so I could display the following in my left navigation menu:
Overview
About Us
Hope Has a Name
Our Staff
Board of Directors
President's Message
Contact Us
Guestbook
Our Links
Thank you in advance . . .
Here is my environment
# concrete5 Version 5.6.0.1 # concrete5 Packages AddThis (1.0), Automatic Email Obfuscator (1.2.3), Bootstrap Buttons (2.0.4.1), Bootstrap Carousel (2.1), Clicky Web Analytics (1.2.0), Login (1.1), MindNet Clear Cache (1.0), Popup Login (1.0.5), reCAPTCHA (1.0), Superhero (1.2.1), Ticker (1.0.1). # concrete5 Overrides css/my-custom.css # Server Software Microsoft-IIS/7.0 # Server API cgi-fcgi # PHP Version 5.3.16 # PHP Extensions bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_sqlsrv, Phar, Reflection, session, SimpleXML, sockets, SPL, sqlsrv, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib. # PHP Settings
Viewing 15 lines of 41 lines. View entire code block.
![SteadyIT](/files/avatars/99622.jpg)
I am trying to figure out if I can include the parent page and all of its subpages in my left navigation menu. If I can't do setup the auto nav block like this is their any addons anyone would recommend?
Did you ever find a way to do this?
Thanks!
Thanks!
Hello,
No I was never able to find a way to do this. I experimented alot with the settings and very found a combination of options that would work. So unfortunately I still don't know if it is even a possibility with the right settings.
No I was never able to find a way to do this. I experimented alot with the settings and very found a combination of options that would work. So unfortunately I still don't know if it is even a possibility with the right settings.
You can do this by creating a custom template.
Add a folder called 'nav_parent' to [root]\blocks\autonav\templates.
Then add the code below on line 112 directly after the line
Note: I didn't have time to test this, but is should be accurate.
Add a folder called 'nav_parent' to [root]\blocks\autonav\templates.
Then add the code below on line 112 directly after the line
//*** Step 2 of 2: Output menu HTML ***/
$nh = Loader::helper('navigation'); $page = Page::getCurrentPage(); $parent = $page->getParentPage(); echo '<span><a href="' . $nh->getLinkToCollection($parent) . '" class="">' . $parent->getCollectionName() . '</a></span>';
Note: I didn't have time to test this, but is should be accurate.
Once you have the template created, you will need to click on your autonav block and select the custom template.
Hello NetJunky279,
It would be great to try out your recommendation.
Thanks for posting.
It would be great to try out your recommendation.
Thanks for posting.
Hmmm, this is exact what I need, but this results in a fatal error. Tried several things, but no results. I tried this with v5.6.0.2.
Please post the error message.