2015-02-17, 02:53:57
Hello, I have an odd request from a client... I need to limit the number of dropdown items displayed for a specific parent item (special-offers), is this possible? This is the code in my template:
And this is the component I'm using for a custom render:
PHP Code:
<?php get_i18n_navigation(return_page_slug(),0,2,I18N_SHOW_MENU, $component='apsnav'); ?>
And this is the component I'm using for a custom render:
PHP Code:
<li<?php if ($item->hasChildren) { ?> class="dropdown"<?php } ?>><a href="<?php echo htmlspecialchars($item->link); ?>"<?php if ($item->hasChildren) { ?> data-toggle="dropdown" class="dropdown-toggle"<?php } ?>><?php echo htmlspecialchars($item->text); ?><?php if ($item->hasChildren) { ?><b class="caret"></b><?php } ?></a>
<?php if ($item->isOpen) { ?>
<ul<?php if ($item->hasChildren) { ?> role="menu" class="dropdown-menu"<?php } ?>>
<?php $item->outputChildren(); ?>
</ul>
<?php } ?>
</li>