"Home"- Link in Main Navigation ?

Permalink
Does anyone know a way to add a "Home" link on the main Navigation. After looking at it Im thinking I might have to build a custom Auto-nav Block.

Any help on this subject would be much appreciated.

Thanks

Paul

PaulWood
 
frz replied on at Permalink Reply
frz
1. Go to dashboard
2. Go to sitemap
3. Click on 'Home'
4. Click on Properties
5. Scroll to bottom and uncheck 'Exclude from Nav'
6. Rejoice that you have Home in your nav without any yucky hackery.

from this thread..
http://www.concrete5.org/index.php?cID=748...
PaulWood replied on at Permalink Reply
PaulWood
I have already looked at the properties and the "exclude from nav" is unchecked. I dont know if it has to do with the fact that it is the Home Page. When you look at the site map home page is the top folder that holds all the other pages.

I also have not upgraded to Version 5.1.1 yet
frz replied on at Permalink Reply
frz
hrm.. well if you saved your changes, went to a new page and didn't see home show up in the auto nav at the top, maybe the autonav's settings are weird on your install.

try putting the navigation block in edit mode and change the properties around in there and glance and preview to see if it shows up.
PaulWood replied on at Permalink Reply 5 Attachments
PaulWood
Well here are some images of what I have so far. Ive looked at the other sample sites using C5 and everything is working for them. I have no idea what I am doing wrong.

On the homepage I can get the "Home" link to show up when I use the settings shown below but the Red underline will not stay on the on-state.

When I use those same settings on other pages the "Home" link does not show up.

If there is anything these pictures can shed light on let me know.
frz replied on at Permalink Reply
frz
that's a know bug. we're working on it. I believe there's a fix in that discussion i linked to, if not search around the forums for "home"
LucasAnderson replied on at Permalink Reply
LucasAnderson
You could always add an 'external link' to the sitemap that points to your home page. This has worked for me.
PaulWood replied on at Permalink Reply
PaulWood
Only problem is the button on-state does not work with this method. But this will do for now till they fix the bug.
matogertel replied on at Permalink Reply
matogertel
I was about to start a site in CMS Made Simple when I discovered the wonders of C5 wich I will use instead. One nice thing you can do in CMS Made Simple is that you can add links to internal pages to the navigation. I think if C5 incorporates this feature, it will add a lot of power to the AutoNav block.
In the meantime, I've replaced this line in the header_menu template:
if (strpos($c->getCollectionPath(), $_c->getCollectionPath()) === 0) {

if these few 3 lines:
if ($c->getCollectionID() == 1 && $ni->getURL() == "/") {
$navSelected='nav-selected';
}
elseif (strpos($c->getCollectionPath(), $_c->getCollectionPath()) === 0) {

Then added the home page as and external link.
DavidMIRV replied on at Permalink Reply
DavidMIRV
Having gone through the logic recently of creating my own Custom AutoNav (To use Spry panels and change the output style) I can tell you that the home page is considered by the C5 core to be a system page, along with several other pages (even if you create your own in the top level directory; Login,Registration). What if you added an external link from the sitemap and had it in fact not be external?
Just a thought
matogertel replied on at Permalink Reply
matogertel
Hey guys, here's another hack that seems to work and it goes in the lines of what I was saying about CMS Made Simple:
I just discovered you can make an Alias of a page!http://www.concrete5.org/index.php?cID=52...
Basically it sais you can put a link to a page somewhere else in the tree. So I thought, cool, I'll make an Alias of the home page under the home page! Which is the way I've done it in CMSMS. Well... c5 is a bit picky on where it alowes you to put aliases, and you can't make an Alias of the home page through the GUI, but just for the sake of it, I added the Alias entry manually into de database and it worked! No need to hack AutoNav. Only problem is that pretty URLs don't work for aliases. My home page in the nav links to index.php?cID=53 which really sucks... so if any of you c5 guys read this, here's my request for Aliases:
- Please allow an alias to be put anywhere.
- Please allow any page to be aliased
- Please return the original page URL in the getURL function of an Alias page.
Cheers!