edomaru / codeigniter_multilevel_menu Goto Github PK
View Code? Open in Web Editor NEWCodeigniter Multilevel Menu
License: MIT License
Codeigniter Multilevel Menu
License: MIT License
Hi Edomaru, can I ask your help? Two questions:
Thanks a lot for your feedback
Any ideas how to set parent active too, because now setting the submenu active only? :)
In my configuration file I'm trying to set $config["parentl1_anchor"] but at %s position I get just a #character.
What's the issue?
Thanks
Hello!
The bootstrap-submenu now using Bootstrap 4.1.0, do you upgrade you library for new version at Bootstrap-submenu?
When I select a menu its entry doesn't show as active.
Additional, sinceI have at least 3 level for each menù entry I need to add active class to each level.
Thanks for any feedback
Hi Edo,
hope you don't mind if I ask again for help; I really need your script but I'm not able to figure out a couple of issues.
First of all:
Second question:
$config["parent_anchor_tag"] = '<a href="#" class="dropdown-toggle" data-toggle="dropdown">%s</a>';
just produce the following result:
<a href="#">
Thanks a lot for your support and for your script
In my project I'm using two languages using CI function. I'm wondering if I can set up multi level menu for double language too.
Thanks
Hello there, I am trying to setup this library in my project but I can't get it to work. This is the code in my controller:
$this->load->model('navigation_model', 'navigation');
$items = $this->navigation->getMenuItems();
$this->multi_menu->setItems($items);
$menu = $this->multi_menu->render();
echo $menu;
The result of: echo <pre>; var_dump($items); echo '</pre>;
is the following:
array (size=3)
0 =>
array (size=5)
'id' => string '1' (length=1)
'name' => string 'ISLR' (length=4)
'slug' => string 'islr' (length=4)
'parent' => string '0' (length=1)
'order' => string '1' (length=1)
1 =>
array (size=5)
'id' => string '2' (length=1)
'name' => string 'Mensual' (length=7)
'slug' => string 'islr/monthly' (length=12)
'parent' => string '1' (length=1)
'order' => string '1' (length=1)
2 =>
array (size=5)
'id' => string '3' (length=1)
'name' => string 'Anual' (length=5)
'slug' => string 'islr/yearly' (length=11)
'parent' => string '1' (length=1)
'order' => string '2' (length=1)
But I am getting an empty UL. Debugging a little the code I can see that $parent
under prepare_items()
is always null, why? What I am missing?
NOTE: I have made a few changes in naming to be PSR2
i want to serialize list item. but, how to give the menu_id for each menu items?
It'll be good if create an option for creating menu from front end .
Hi, i would like a checkbox near a every menu item.
In the value of checkbox i must add the name of menu item.
How can i do?
Thanks.
I want make multiple position like
database name: menus
Structure:
id
type (ex: main-menu, footer-menu, right-menu)
parent_id,
level (level1, level2, level..)
order (sort by asc with level 1 and sub level, like field number current)
title
slug
...
...
Thanks you!...
Cannot workaround how to add icons to menu items can anybody help please. Tried to follow the example but not working
Thank you in advance
Stephen
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.