Download the PHP package xddesigners/silverstripe-grouped-cms-menu without Composer

On this page you can find all versions of the php package xddesigners/silverstripe-grouped-cms-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-grouped-cms-menu

Silverstripe Grouped CMS Menu

Collapsible, grouped left-hand admin menu for Silverstripe CMS 6.

It groups the native LeftAndMain menu by a simple config, overriding only LeftAndMain_MenuList.ss. The rest of the native sidebar is untouched — the collapse toggle and the version indicator keep working — and colours/logo are left to your project theme. Groups with two or more present items become collapsible parents (open/closed state persists per group in localStorage); single-item groups and ungrouped items render as normal rows.

Requirements

Installation

Then flush: ?flush=all.

Configuration

Define your groups on LeftAndMain.menu_groups in your project config (e.g. app/_config/cms-menu.yml). Each key is a group title; each group lists the menu-item Codes to pull into it. A Code is the menu item's class with backslashes replaced by dashes — e.g. SilverShop\Admin\OrdersAdminSilverShop-Admin-OrdersAdmin.

Notes:

Font Awesome

Group icon_class values like fas fa-shopping-cart need Font Awesome loaded. By default the free CDN stylesheet is added for you. To use a paid/pro kit, or to change/disable the stylesheet:

You can also use Silverstripe's built-in font-icon-* classes as icon_class values, in which case no Font Awesome is required.

Translations

Group titles and the toggle label go through _t():

How it works

The extension adds a GroupedMainMenu() method to LeftAndMain and ships a LeftAndMain_MenuList.ss template override that loops it. Because only the menu-list partial is replaced, everything else the core sidebar does (collapse, version badge, section highlighting) is preserved. Group open/closed state is stored per group under xdCmsGroup_<id> in localStorage.

License

BSD-3-Clause. See LICENSE.


All versions of silverstripe-grouped-cms-menu with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
silverstripe/framework Version ^6
silverstripe/admin Version ^3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xddesigners/silverstripe-grouped-cms-menu contains the following files

Loading the files please wait ...