Hello all,
I’m having a problem with Pages Nested Menu that seems to be related to the way EE reacts to the structure of my site. Currently, the home pages of my major subsections (www.com/nutrition, etc.) are handled by index templates in identically-named template groups. Each subsection has its own weblog dedicated to static pages. (www.com/nutrition/static1, etc.) It’s the entries in these weblogs I’d like to show using Pages Nested Menu. I’m telling PNM to use the template group name as its base URL. Unfortunately, instead of displaying like so:
StaticA. StaticB. -Bsub1. -Bsub2. -Bsub3. StaticC.
One of the static entries is assigned as the “home” entry, resulting in a screwed up menu. Example:
StaticC. -StaticA. -StaticB –Bsub1 –Bsub2 –Bsub3 -StaticC
I originally thought it was PNM’s problem, but in poking through the “Pages” tab in CP I found that EE itself seems to be setting this. For example, the Pages tab shows the following:
Nutrition -StaticA -StaticB –Bsub1 –Bsub2 –Bsub3 -StaticC
The “View Page” Link for Nutrition defaults to one of the static entries - usually the one that comes first alphabetically. So, if you can follow that, does anyone have any idea how to fix it, short of making my index page a static weblog entry (which I really don’t want to do)? Or is there something fundamentally wrong with the way I’ve structured my site?
Oh, this is the code I’m using to call PNM. It’s practically straight off Huot’s site:
{exp:pages_nested_menu root="/nutrition/" include_root="no" depth="2" include_ul="no"}
<li><a href="http://{pnm_page_url}" title="{pnm_title}">{pnm_title}</a></li>
{/exp:pages_nested_menu}
Thanks for any help, guys and gals. 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.