CGSimple Smarty navigator
Posted: Tue Aug 29, 2017 7:58 am
So I'm trying to use CGSimpleSmarty to populate the parent alias...but...I'm obviously not doing it correctly.
I have also tried
and just $parent_alias and not much luck. I'd really appreciate it if you could provide some insight as to what I am doing wrong.
Thank you!
Code: Select all
{if $node->depth > $node->prevdepth}
{repeat string='<ul id="{cgsimple::get_parent_alias()}" class="dropdown-menu">' 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}Code: Select all
{$cgsimple->get_parent_alias('','parent_alias')}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul id="{$parent_alias}" class="dropdown-menu">' 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}Thank you!