customize menu template

General project discussion. NOT for help questions.
Post Reply
User avatar
tern
Forum Members
Forum Members
Posts: 65
Joined: Tue Oct 16, 2007 1:00 pm

customize menu template

Post by tern »

I got 2 languages, the 1st language is normal, whatever i insert in page>menutext it will appear in the navigation menu,
but now i got the 2nd language, i create 2nd menu template for 2nd language,
how do i customize the "menutext" & repeat & "submenu" from the page>menutext?

this is the 1st language: http://www.samuraipaint.jp/index.php?page=home-2
this is the 2nd language: http://www.samuraipaint.jp/index.php?page=laman-utama


This is  the original wireframe2colwnews : theme : CSSmenuhoriz1 navigation menu template:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{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 class="menuactive menuparent"><a class="menuactive menuparent" {elseif $node->current == true}
	<li class="menuactive"><a class="menuactive" {elseif $node->haschildren == true}
	<li class="menuparent"><a class="menuparent" {else}
	<li><a {/if}
href="{$node->url}">{$node->menutext}</a>{/foreach}

	{repeat string="</li></ul>" times=$node->depth-1}		</li>
	</ul>
</div>
{/if}
thank you cms made simple. cms made possible:
www.redstarz.net
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: customize menu template

Post by Dr.CSS »

I have no idea what you mean, do you want 2 diff. languages for your site?...

If so use the CMS Made Simple MLE fork...
Post Reply

Return to “General Discussion”