Build menu with 'category' and smarty

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 4, 2009   (RSS)

Hi all,

I want to create a menu using the CMSCuilder Category menu type and Smarty.

Was trying to do this for a while but without the result I am looking for. Is there somebody who has done this before.

In HTML it must look like :

<div class="newMenu">
<ul id="nav" class="dropdown">
<li><a href="./">ROOT ITEM 1</a> </li>
<li><a href="./" >ROOT ITEM 2</a>
<ul>
<li class="empty">SUB ITEM 2.1</li>
<li><a href="./">ITEM 2.1.1</a></li>
<li><a href="./">ITEM 2.1.2</a></li>
<li class="empty">>SUB ITEM 2.2</li>
<li><a href="./">ITEM 2.2.1</a></li>
</ul>
</li>
<li><a href="./" >ROOT ITEM 3</a>
<ul>
<li class="empty">SUB ITEM 3.1</li>
<li><a href="./">ITEM 3.1.1</a></li>
<li class="empty">>SUB ITEM 3.2</li>
<li><a href="./">ITEM 3.2.1</a></li>
<li><a href="./">ITEM 3.2.2</a></li>
</ul>
</li>
</ul>
</div>


I also created this structure in CMSBuilder but cannot create the smarty template code to do this.

Thanks for helping!

Kind regards,
Jerry

Re: [Dave] Build menu with 'category' and smarty

We created the menu in PHP code now and pass the complete string to smarty. This works well.

Thanks for yr quick support.

Jerry