Hi Soma,
thanks for this cool module – Danke
I have a question about adding some additional stuff (data-attribut and css-styles) to the markup.
I'm using the uikit: http://getuikit.org and I wanted to insert their accordion in my menu: http://getuikit.org/docs/nav.html (check »Accordion«)
To convert a menu link into a accordion, I have to add this: <ul class="uk-nav uk-nav-parent-icon" data-uk-nav> and also this: <li class="uk-parent">
to a sublink.
I'm trying to achieve this:
Start
Page 1
parent-subpage --> this shall be the accordion link
item 1
item 2
item 3
Currently I'm using this:
<?php
$treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module
$options = array(
'parent_class' => 'parent',
'current_class' => 'active',
'has_children_class' => 'has_children',
'collapsed' => false,
'show_root' => true
);
echo $treeMenu->render($options);
?>
Thank you