How do I program LINKS (a href="??") in navigation
PermalinkI was using just this format:
<a href="special-events">Special Events</a>
Which worked great! It will take me to:
www.www.mydomain.com/special-events...
PERFECT!
The Auto Nav also takes me to /special-events ...etc.
So both menus work great individually.
The problem I have is when I click "Special Events" (for example) in the Auto Nav in the footer and then click "News" (for example) in the manually-programmed menu up at the top of the website, it goes to this:
www.www.mydomain.com/special-events/news...
instead of
http://www.mydomain.com/news
like I need it to. So, I get a "Page not found"
must be <ahref="page-name">Page Name</a> is not the correct way to manually encode links.
Or perhaps there is a little C5 snippet like <?=$this->getThemePath()?>
that would work?
Probably easiest just to hard-code the footer, too. I don't know why I bothered to do the Auto Nav thing, anyway. Pointless in this scenario.
define('URL_REWRITING_ALL', true);
I am planning on building a C5 site for myself in the next few weeks and want to publish a tutorials section (more like Quick Tips) of all the tidbits I've collected about C5 so far. If I didn't make this list, I would be so screwed, so it has helped me a lot as I continue to make more C5 sites. Is this undocumented feature something you would like me to document in my Quick Tips section? If so--and if there is anything else like this you can think of off the top of your head, I'd love to collect as many Quick Tips as I can and get 'em out there!
I think it's great that you want to share your list of tips and tricks -- but I would encourage you to look at the half dozen or so that are already out there and maybe talk to their authors about improving one list instead of adding yet another one to the mix -- that will only make it more confusing for people, not less.
will make