Hi guys can anyone help with this?
I've just been fighting with navigation bar issues and finally got it working with php includes (much thanks to this post, and this one) and come up with an include command in the main pages and the following in a seperate nav.php file which is PL-editable:
<div id="subNav" class="cms-editable">
<ul>
<li><a href="link1.php">First Item</a></li>
<li><a href="link2.php">Second Item</a></li>
<li><a href="link3.php">Third Item</a></li>
</ul>
</div>
However I've come to a dead end. The problem is that on certain pages the navigation options from the top nav are repeated down the left hand side. "No problem" I thought, I'll just put the same include in the left nav bar and it'll update both together. Not so. On those pages PL gets upset cos the id is repeated in two places (top nav and side nav).
I have no idea how to get round this - if I specify 2 different cms-editable areas on the individual pages like this:
<div id="topNavEdit" class="cms-editable">
<?php include("nav.php"); ?>
</div>
and leave the nav.php file as just a ul list, PL is happy to let me edit the menus individually, but the include file is not edited directly, so the changes are not site-wide, which was the whole point...!
Any help greatfully recieved!