[SOLVED] Menu issues after Pretty URLs

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
krazymike
New Member
New Member
Posts: 7
Joined: Sun Oct 31, 2010 3:02 pm

[SOLVED] Menu issues after Pretty URLs

Post by krazymike »

I'm using the BizBuzz menu manager. I just activated Pretty URLs, and now my menu always shows "Home" as the active page.

My pages now use the .html extension ie, "site.com/news.html"

Here's the Menu Manager code as it is now.

Code: Select all

{if $count > 0}
<ul id="menu" class="sf-menu">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li><a class="current" {elseif $node->current == true}
<li><a class="current" {elseif $node->haschildren == true}
<li><a {elseif $node->type == 'sectionheader'}
<li>{$node->menutext} {elseif $node->type == 'separator'}
<li> <br />{else}
<li><a {/if} {if $node->type != 'sectionheader' and $node->type != 'separator'}href="{$node->url}" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{else}title="{$node->menutext}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn><span>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}><dfn>{$node->hierarchy}: </dfn><span>{$node->menutext}</span></a>{/if}{/foreach}{repeat string="</li></ul>" times=$node->depth-1}</li></ul>
{/if}
Last edited by krazymike on Sat Feb 26, 2011 8:25 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu issues after Pretty URLs

Post by Dr.CSS »

A link to the page may help, what's with the <br /> in there, it may be stopping the menu from going any farther...
krazymike
New Member
New Member
Posts: 7
Joined: Sun Oct 31, 2010 3:02 pm

Re: Menu issues after Pretty URLs

Post by krazymike »

I have no idea why the <br /> I didn't put that in, but nothing has changed other than the Pretty URLs setting.

This is what I added to my config.php:

Code: Select all

$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'page';
http://dallascountybiz.com

GREAT! now the menu isn't even working!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu issues after Pretty URLs

Post by Dr.CSS »

Works for me...
krazymike
New Member
New Member
Posts: 7
Joined: Sun Oct 31, 2010 3:02 pm

Re: Menu issues after Pretty URLs

Post by krazymike »

Are you being sarcastic? The menu doesn't work now!
krazymike
New Member
New Member
Posts: 7
Joined: Sun Oct 31, 2010 3:02 pm

Re: Menu issues after Pretty URLs

Post by krazymike »

Ok, I got it fixed. It was in the .htaccess file.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED] Menu issues after Pretty URLs

Post by Dr.CSS »

No I wasn't being sarcastic, it worked then and it works the same now...
Post Reply

Return to “CMSMS Core”