Menu Manager

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
titi123
Forum Members
Forum Members
Posts: 14
Joined: Tue Oct 20, 2009 8:42 pm

Menu Manager

Post by titi123 »

Hello friends,
i'm trying to create a menu, but unfortunately it does not work really. maybe you can help me a little bit:)

This is the menu structure:

Code: Select all

[== HTML ==]
<ul id="mainNav">
        <li><a href="#">Presenting</a>
            <div class="subnav">
                <div class="subnavTop">
                    <ul class="subnavContent">
                        <li>
                            <dl>
                                <dt><a href="#">Planning</a></dt>
                                <dd><a href="#">client conversation roadmap</a></dd>
                                <dd><a href="#">audience mapping</a></dd>
                                <dd><a href="#">technology adoption</a></dd>
                                <dd><a href="#">behavior type</a></dd>
                                <dd><a href="#">corporate culture</a></dd>
                                <dd><a href="#">elevator pitch</a></dd>
                            </dl>
                            <dl>
                                <dt><a href="#">Planning</a></dt>
                                <dd><a href="#">client conversation roadmap</a></dd>
                                <dd><a href="#">audience mapping</a></dd>
                                <dd><a href="#">technology adoption</a></dd>
                                <dd><a href="#">behavior type</a></dd>
                                <dd><a href="#">corporate culture</a></dd>
                                <dd><a href="#">elevator pitch</a></dd>
                            </dl>
                            <dl>
                                <dt><a href="#">Planning</a></dt>
                                <dd><a href="#">client conversation roadmap</a></dd>
                                <dd><a href="#">audience mapping</a></dd>
                                <dd><a href="#">technology adoption</a></dd>
                                <dd><a href="#">behavior type</a></dd>
                                <dd><a href="#">corporate culture</a></dd>
                                <dd><a href="#">elevator pitch</a></dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
        </li>
</ul>
I'm not able to close the dl-tag with </dl>. Can somebody help me? Thank you

This is the Smartycode:

Code: Select all

[== Smarty ==]
{if $count > 0}
<ul id="mainNav">
{foreach from=$nodelist item=node}
{if $node->depth == 2}
{repeat string='<div class="subnav"><div class="subnavTop"><ul class="subnavContent"><li>' times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string='</div></div></li>' times=$node->prevdepth-2}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}
{/if}

{if $node->depth == 1}
<li><a href="{$node->url}">{$node->menutext}</a>

{elseif $node->depth == 2}
<dl><dt><a href="{$node->url}">{$node->menutext}</a></dt>

{elseif $node->depth == 3}
<dd><a href="{$node->url}">{$node->menutext}</a></dd>
</dl>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}

{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />

{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
Post Reply

Return to “Modules/Add-Ons”