Page 2 of 2

Re: Menu title in two lines

Posted: Wed Dec 24, 2008 1:53 pm
by Mikk
All right Ronny, I did it ;) but the problem remains the same :

- Yes i can edit the new duplicated menu template within CMSMS but my problem remains ....the duplucated menu won't allow me to write in my website navigation menu ( example: "our company" )

the hack above should be inserted I d'ont know where....am i wrong ?

regards
Mikk

Re: Menu title in two lines

Posted: Wed Dec 24, 2008 2:01 pm
by RonnyK
Which one are you using then.... If it is the one I pointed at, then it will replace only if you put __br__ there IIRC...

Ronny

Re: Menu title in two lines

Posted: Wed Dec 24, 2008 2:21 pm
by Mikk
well i'm using horizontal cssmenu, this one :
-------------------------------------------------------------
{* CSS classes used in this template:
#menuwrapper - The id for the that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the
.menuparent - The class for each that has children.
.menuactive - The class for each that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}


{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}

{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}

{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
current == true}
haschildren == true}
type == 'sectionheader'}
        {$node->menutext}
{elseif $node->type == 'separator'}
       
{else}
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}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}>{$node->hierarchy}: {$node->menutext}
{elseif $node->type == 'sectionheader'}
>{$node->hierarchy}: {$node->menutext}
{/if}

{/foreach}

{repeat string="" times=$node->depth-1}



{/if}
-------------------------------------------------------------------------------

does it allow the  __BR__  syntax without pasting any hack within ?

thanks a lot for your patience ;)
Mikk

Re: [RESOLVED ] Menu title in two lines

Posted: Wed Dec 24, 2008 3:06 pm
by Mikk
ok, I finally found how to apply instructions that calguy1000 gave to me :

I searched ({$node->menutext}) and replaced ({$node->raw_menutext}) in cssmenu.tpl 

that was so simple ;) thanks for everyone that helped ;)
Mikk

Re: Menu title in two lines

Posted: Wed Dec 24, 2008 3:35 pm
by Mikk
Well thought it was resolved, but there is another issue.... On the link provided above, the topic talked about writing in the website template this :

   {* Start Breadcrumbs *}
   {breadcrumbs|replace:'':'' starttext= ................etc.................}
   {* End Breadcrumbs *}

But why  replace:'':''  did'nt work for me in the breadcrums ? Now my breadcrumbs are like that :

"Home >> Ourcompany"

Thanks

-------------------- Resolved -------------------------

Well i had not to write to replace but to replace <br/>
{breadcrumbs|replace:'<br/>':'' starttext= ................etc.................}

----------------------------------------------------------
Merry xmas everyone ;-)