Componette

Componette

contributte

contributte / menu-control v3.2.0

๐Ÿ” Menu and breadcrumb components for Nette framework (@nette)

download-cloud-line composer require carrooi/nette-menu

Website ๐Ÿš€ contributte.org | Contact ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป f3l1x.io | Twitter ๐Ÿฆ @contributte

Usage

To install the latest version of contributte/menu-control use Composer.

composer require contributte/menu-control

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^3.3 master 3.1+ >=8.1
stable ^3.2 master 3.1+ >=8.1
stable ^2.2 v2.2 3.0 >=7.1
stable ^2.1 v2.1 2.4 >=7.1

Development

See how to contribute to this package.

This package is currently maintaining by these authors.


Consider to support contributte development team. Also thank you for using this package.

  • v3.2.0 v3.2.0

    Bumped! ๐Ÿคฝ

    Diff: 3.1.0...v3.2.0

    Changes:

    Maintenance:

  • 3.1.0 v3.1.0

    • Support nette/utils 4.0
    • Fixed compatibility with Nette\Localization\Translator::translate() new definition
    • Allow ReturnTranslator::getRealTitle() return type Stringable
  • 3.0.1 v3.0.1

    Updated minimum required package versions to fully support PHP 8.2

    • nette/di: ^3.0.15
    • nette/utils: ^3.2.8
    • nette/application: ^3.1.8
    • nette/http: ^3.1.7
  • 3.0.0 v3.0.0

  • 3.0.0-alpha1 v3.0.0-alpha1

    Main changes

    • Minimal supported PHP version is now 8.0
    • Requires latte/latte ^3.0

    Bug fixes

    • Fixed MenuExtension::normalizeMenuItems() method
    • Fixed breadcrumbs rendering (closes #50)
    • Added check in MenuItem menu template, if item is allowed

    Improvements

    • Implemented MenuExtension config schema validation using Nette\Schema
    • Use Nette Translator interface instead of deprecated ITranslator

    Refactoring

    • Split template configuration to new TemplatePaths and MenuVisibility classes
    • Moved $visbility and $data properties from MenuItem to traits
    • Move MenuItem actions to new MenuItemAction class
    • Moved Nette\Http\Request to NetteLinkGenerator, interface ILinkGenerator have new method absoluteLink() [BC break]
    • Renamed ArrayMenuLoader to DefaultMenuLoader [BC break]
    • Interface IMenuComponentFactory was removed, use MenuComponentFactory directly [BC break]
    • Removed MenuItem option to have custom linkGenerator for each menu item [BC break]
    • Changed Menu::setActivePresenter() method to not allow nulls [BC break]
    • Make working with data items more clear, MenuItem methods getData() , hasData(), addData() refactoring [BC break]
  • 2.1.2 v2.1.2

    • Make installabe as contributte/menu-control
    • Updated MenuExtension namespace to Contributte\MenuControl\DI [BC break]
  • 2.2.1 v2.2.1

    • Fixed reverse logic in MenuItem::isActive() (#42)
    • Fixed possible bug in nette/application by updating minimal version to 3.0.4
    • Make installabe as contributte/menu-control
    • Updated MenuExtension namespace to Contributte\MenuControl\DI [BC break]
  • 2.1.1 v2.1.1

    • Fixed link generation error when using modules introduced in PR #32
  • 1.0.0 v1.0.0

    • First version
  • 1.0.1 v1.0.1

    • Include option can be array of targets #1
    • Added support for translatable titles #2
  • 1.0.2 v1.0.2

    • Support for "dynamic" modules in includes option #4
  • 1.0.3 v1.0.3

    • Added shortcut methods for working with item's data #5
  • 1.0.4 v1.0.4

    • Added hasIcon and hasCounter methods
    • Support for "absolute" targets #6
  • 1.1.0 v1.1.0

    • Support for ACL permissions (thanks whipsterCZ)
    • Support for generating sitemap (thanks whipsterCZ)
  • 1.1.1 v1.1.1

    • Move under Carrooi organization
  • 2.0.0 v2.0.0

    • Refactoring - complete rewrite
  • 2.1.0 v2.1.0

    • Fixed registration of more menus #23
    • Added shortcuts for working with data #24
  • 2.2.0 v2.2.0

    • Nette 3 compatibility
bar-chart-fill

Statistics

download-cloud-fill
42730
star-fill
27
bug-fill
3
flashlight-fill
112d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1)
nette/di (^3.0)
Componette Componette felix@nette.org