[ Resolved ] Menu title in two lines

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Mikk
Forum Members
Forum Members
Posts: 15
Joined: Tue Dec 23, 2008 10:57 pm

Re: Menu title in two lines

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Menu title in two lines

Post 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
Mikk
Forum Members
Forum Members
Posts: 15
Joined: Tue Dec 23, 2008 10:57 pm

Re: Menu title in two lines

Post 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
Mikk
Forum Members
Forum Members
Posts: 15
Joined: Tue Dec 23, 2008 10:57 pm

Re: [RESOLVED ] Menu title in two lines

Post 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
Mikk
Forum Members
Forum Members
Posts: 15
Joined: Tue Dec 23, 2008 10:57 pm

Re: Menu title in two lines

Post 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 ;-)
Last edited by Mikk on Wed Dec 24, 2008 4:12 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”