Download the PHP package youandmedigital/craft-breadcrumb without Composer

On this page you can find all versions of the php package youandmedigital/craft-breadcrumb. 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 craft-breadcrumb

Craft Breadcrumb

Breadcrumb for Craft CMS

Generate a simple breadcrumb.

Requirements

This plugin requires Craft CMS 5 or later.

Breadcrumb from URL

Installation

To install the plugin, search for "Breadcrumb" in the Craft Plugin Store, or install manually using composer.

Overview

This plugin will generate a simple breadcrumb array that you can style via Twig. It will generate crumb titles from the customFieldHandle setting if set, falling back to the title field. If none of these fields are present, it will generate the crumb title from the URL segment.

Breadcrumb works across different element types and is multisite friendly. It can even be used to generate BreadcrumbList schema.

Example

Breadcrumb generates an array like this:

Use Twig to define the presentation and apply additional logic. Use whatever markup that suits your project best. Here's a basic example with no settings applied:

Settings

Breadcrumb has the following settings available:

homeTitle (string, optional, default 'Home') Customise the title in the first segment of the breadcrumb.

customBaseUrl (string, optional, default '@baseUrl') Set a custom base URL for each crumb in the Breadcrumb array. Use a fully qualified URL without the trailing slash.

customFieldHandle (string, optional, default 'null') Specify a custom field handle to generate each crumb title. Requires the setting customFieldHandleEntryId to work.

customFieldHandleEntryId (int, optional, default '0') Required for customFieldHandle.

lastSegmentTitle (string, optional, default 'null') Customise the last crumb title in the Breadcrumb array. Useful when using custom routing.

skipUrlSegment (int, optional, default 'null') Skip a level or segment from the Breadcrumb array. For example, if you had the following URL https://mysite.local/posts/categories/example-category and you entered 3 as the value, it would remove categories from the array.

limit (int, optional, default 'null') Limit the amount of crumbs returned in the Breadcrumb array.

Example setup with settings applied:

Roadmap

PR & FR welcome!

Brought to you by You & Me Digital


All versions of craft-breadcrumb with dependencies

PHP Build Version
Package Version
No informations.
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 youandmedigital/craft-breadcrumb contains the following files

Loading the files please wait ....