GithubHelp home page GithubHelp logo

codeigniter_multilevel_menu's People

Contributors

edomaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter_multilevel_menu's Issues

Multiple config

Hi Edomaru, can I ask your help? Two questions:

  • in my projects there is an Admin section and a Public Section; they use different menu layout. Can I set two different config file?
  • Is the active menu feature working fine in latest script version?

Thanks a lot for your feedback

Active parent menu too

Any ideas how to set parent active too, because now setting the submenu active only? :)

Missin text item

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

Bootstrap 4.1

Hello!
The bootstrap-submenu now using Bootstrap 4.1.0, do you upgrade you library for new version at Bootstrap-submenu?

Selected menu not active

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

Active menu

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:

  • active menu. Don't know why, in my menù there is no way to get the active class properly set. Any hint to make it working? The public menù is quite simple ( you can see it here http://gavs.it/_gavs/ in the home page there are two menus, the first one is drawned by your script, the second one it's the template) but using the script I cannot get the selected menù activated.

Second question:

  • weird, I'm using the config file and the following setting:
    $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

Double language menu

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

Example on README not working for me

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

checkbox near a every menu item

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.

How to create multiple position with database like in content

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!...

Adding icons to menu items

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.