Git Product home page Git Product logo

php-menu's People

Contributors

anlutro avatar

Stargazers

 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

php-menu's Issues

unable tun tests on phpunit 5+

Classname is different as phpunit is namespaced now. Will submit a pull request.

Also, I saw some minor issues in IDE's that I can solve with extra phpdoc markup.

Menu headers

Can be implemented by simply adding headers at the appropriate locations, or by organizing menu items into groups with an optional header. The latter is more complex but will make it possible to not render a header if the header has no items associated with it.

Database Structure

What would be a sufficient database structure to store a menu in that could b easily converted to this? I am building a site where I want administrators to be able to modify menu navigation without have to code.

I love what is available currently.

Smart dividers

Find a way to make dividers smart - i.e. they only get rendered if there are items both before and after it, and the first item before/after is not another divider.

One possible way to implement this is to create menu item "groups", which are imploded/joined with a divider.

Serializers

Add serializer classes that allow you to easily store menus as JSON or in a database.

Submenu parent specific link

It looks like I cannot specify a link to the Parent item of a submenu.

My parent submenu item's link is: /order#
I want to specify this link

Can I do this?

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.