PDA

View Full Version : Alter menu to show sub categories in general pages not the shop


mousework50137
06-26-2009, 06:13 AM
Hello,
I need to add a sub page to a menu.
My code is currently

</li>
<li><a href="<?php echo($assumedRoot); ?>training.php">Training</a>
<ul class="level-1">
<li><a href="<?php echo($assumedRoot); ?>corporate_training.php">Corporate</a></li>
<li><a href="<?php echo($assumedRoot); ?>drug_alcohol_training.php">Drug &amp; Alcohol</a></li>
<li><a href="<?php echo($assumedRoot); ?>highways_training.php">Highways</a></li>
<li><a href="<?php echo($assumedRoot); ?>police_training.php">Police</a></li>
</ul>
</li>


I want to add a sub page to the corporate training section above.
How do I do this?

I do have CSS MenuWriter but if I open it it does not reflect what I have in my menu currently.
Is it easier to do manually?

Mark

Ray Borduin
06-26-2009, 06:28 AM
You can try to update it by hand... It may work. I think it would be:

</li>
<li><a href="<?php echo($assumedRoot); ?>training.php">Training</a>
<ul class="level-1">
<li><a href="<?php echo($assumedRoot); ?>corporate_training.php">Corporate</a>

<ul class="level-2">
<li><a href="<?php echo($assumedRoot); ?>newlink.php">New link</a></li>
</ul>

</li>
<li><a href="<?php echo($assumedRoot); ?>drug_alcohol_training.php">Drug &amp; Alcohol</a></li>
<li><a href="<?php echo($assumedRoot); ?>highways_training.php">Highways</a></li>
<li><a href="<?php echo($assumedRoot); ?>police_training.php">Police</a></li>
</ul>
</li>

mousework50137
06-26-2009, 06:43 AM
Hi Ray,
Thanks for your quick responce,
That give a really weird effect, see attachment.
mark

Ray Borduin
06-26-2009, 06:50 AM
Yeah. most likely you need to use the wizard again. My bet is that you didn't have that many levels when you created the menu, so that level of menu isn't defined in the .css.

You can normally add and edit menus by hand. The one time you can't is when adding a new menu to a level that didn't previously exist since it won't be accounted for yet in the .css. My guess is that there is no "level-2" in your css yet and it would be difficult to create by hand without the wizard.

You may be able to run the wizard on another page and add a level and use that css if you don't want to edit your menu directly.