Menu Changing & to &

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
JoshuaBarnette

Menu Changing & to &

Post by JoshuaBarnette »

How can I turn off/stop the Menu Manager changing & to &? I use various codes in my menu such as ´ or " however, the system is always changing the & to & so that the codes do not work correctly. I appreciate any assistance that you can give me.

Thanks,
Joshua Barnette




[gelöscht durch Administrator]
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Menu Changing & to &

Post by tsw »

menu field creates html entities by default from all characters, so you can just use " ' / \ and so on without thinking for the html entities.

the problem is that if you use & it will still parse through that and change it to & (yeah, its a stupid function ;)

hmm I wonder what would happen if we first run it through htmlunentities and then again through html entities...
JoshuaBarnette

Re: Menu Changing & to &

Post by JoshuaBarnette »

The problem I have when I use just the characters " ' / \ etc. is that my XHTML code will not validate and my page shows an error. Like everyone else I do everything possible to make sure the code validates. I am changing the "Guy's Team" on the menu  to reflect the ' and the "Girl's Team" to reflect using ' by changing this you will be able to see the error I get. The site address is http://www.inmanchristian.com/index.php, the site is still in development so the entire url is necessary.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Menu Changing & to &

Post by Dr.CSS »

Those are page names, menu text, you should be able to just type in the name and the menu manager will spit it out normal,,,,
but looking at your code/source view it looks like you are using a diff. menu setup unless you did a lot of modifications to a menu template...
JoshuaBarnette

Re: Menu Changing & to &

Post by JoshuaBarnette »

I did make changes to the CSS Menu Template. That template code is pasted below:

{* CSS Menu Template *}
{if $count > 0}

{foreach from=$nodelist item=node}
{repeat string="" times=$node->prevdepth-$node->depth}
{if $node->depth type != 'separator' and $node->current == true}
  depth > 1 and $node->type != 'separator' and $node->current == true}
  depth type != 'separator'}
  depth > 1 and $node->type != 'separator'}
  depth type == 'separator'}
 
{elseif $node->depth > 1 and $node->type == 'separator'}
 
{else}
{/if}
{if $node->type == 'sectionheader' or ($node->current == true and $node->haschildren == true)}
onclick="expandcontent('{$node->alias}_sub_menu')" href="#menu" onmouseover="window.status=':: {sitename} ¤ {$node->menutext} ::'; return true" onmouseout="window.status=''" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->parent == true}
onclick="expandcontent('{$node->alias}_sub_menu')" href="{$node->url}" onmouseover="window.status=':: {sitename} ¤ {$node->menutext} ::'; return true" onmouseout="window.status=''" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->type != 'sectionheader' and $node->type != 'separator'}
href="{$node->url}" onmouseover="window.status=':: {sitename} ¤ {$node->menutext} ::'; return true" onmouseout="window.status=''" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{/if}
{if $node->type == 'sectionheader' or ($node->haschildren == true)}

  alias}_sub_menu" class="expand">
{elseif $node->type != 'sectionheader' and $node->type != 'separator'}

{/if}
{/foreach}

{/if}
Locked

Return to “Modules/Add-Ons”