[Solved]Path issue with menu and footer menu links

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]Path issue with menu and footer menu links

Post by jasnick »

Using 1.10 - (issue not specific to this version, had the problem before I upgraded)

I can get more specific if needed, but a quick question:

Nav Menu link:
<td style="padding-right:0px" title ="Planning">
<a href="http://sitename.com.au/index.php?page=planning" onmouseover='xpe("vhr2qo");' onmouseout='xpe("vhr2qn");'><img id="xpi_vhr2q" src="navmenu-files/btvhr2q_0.png" name="vbvhr2q" width="113" height="67" border="0" alt="Planning" /></a></td>

This is the only way I can get the menu item to work.

Usually all that is needed is: <td style="padding-right:0px" title ="Planning">
<a href="http://sitename.com.au/planning" onmouseover='xpe("vhr2qo");' onmouseout='xpe("vhr2qn");'><img id="xpi_vhr2q" src="navmenu-files/btvhr2q_0.png" name="vbvhr2q" width="113" height="67" border="0" alt="Planning" /></a></td>

Why do I need to add index.php?page= to the link?

I only discovered this because I checked the footer links to see why they were working and the menu links were not. This is specific to this particular site as I have used the same menu before with no problems and just the plain path. Same applies to the footer links - usually just the plain path will do.

Thanks

I'm thinking something is not right with my config file. The above something to do with mod-rewrite? No option for this in my config file.
Last edited by jasnick on Fri Oct 28, 2011 11:04 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Path issue with menu and footer menu links

Post by Dr.CSS »

The index.php?page= is the default URL string, yes you need to enable pretty URLs, there is a PDF in the [root]/doc folder that tells how to do it...
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Path issue with menu and footer menu links

Post by jasnick »

Yes Dr.CSS - I belatedly realised it is all due to that shonky config file and pretty urls not being enabled. Will fix it today.

Thankd for reply.
Post Reply

Return to “Layout and Design (CSS & HTML)”