Download the PHP package arillo/silverstripe-menumanager without Composer

On this page you can find all versions of the php package arillo/silverstripe-menumanager. 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-menumanager

Arillo Silverstripe Menu Manager

The menu management module is for creating custom menu structures when the site tree hierarchy just won't do.

This module is an alternative to, and is inspired by, heyday/silverstripe-menumanager.

Installation

After completing this step, navigate in Terminal or similar to the SilverStripe root directory and run composer install or composer update depending on whether or not you have composer already in use.

Usage

There are 2 main steps to creating a menu using menu management.

  1. Create a new MenuSet
  2. Add MenuItems to that MenuSet

Creating a MenuSet

This is pretty straight forward. You just give the MenuSet a Name (which is what you reference in the templates when controlling the menu).

As it is common to reference MenuSets by name in templates, you can configure sets to be created automatically during the /dev/build task. These sets cannot be deleted through the CMS.

Disable creating Menu Sets in the CMS

Sometimes the defined default_sets are all the menu's a project needs. You can disable the ability to create new Menu Sets in the CMS:

Note: Non-default Menu Sets can still be deleted, to help tidy unwanted CMS content.

Usage in template

To loop through all MenuSets and their items:

<% loop $MenuSets %>
    <% loop $MenuItems %>
        <a href="$Link" class="$LinkingMode">$MenuTitle</a>
    <% end_loop %>
<% end_loop %>

Optionally you can also limit the number of MenuSets and MenuItems that are looped through.

The example below will fetch the top 4 MenuSets (as seen in Menu Management), and the top 5 MenuItems for each:

<% loop $MenuSets.Limit(4) %>
    <% loop $MenuItems.Limit(5) %>
        <a href="$Link" class="$LinkingMode">$MenuTitle</a>
    <% end_loop %>
<% end_loop %>

Enabling partial caching

Partial caching can be enabled with your menu to speed up rendering of your templates.

Allow sorting of MenuSets

By default menu sets cannot be sorted, however, you can set your configuration to allow it.

Subsite Support

If you're using SilverStripe Subsites, you can make MenuManager subsite aware via applying an extension to the MenuSet.

app/_config/menus.yml

Migrate from data from heyday/silverstripe-menumanager

Uninstall heyday/silverstripe-menumanager and install arillo/silverstripe-menumanager Run dev/build/?flush=all

Afterwards you can run dev/tasks/Arillo-MenuManager-Tasks-MigrateFromHeydayMenus to copy the records into the other table(s), e.g.:


All versions of silverstripe-menumanager with dependencies

PHP Build Version
Package Version
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 arillo/silverstripe-menumanager contains the following files

Loading the files please wait ...