Download the PHP package brotkrueml/sdbreadcrumb without Composer

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

About Structured Data Breadcrumb View Helper

This is a TYPO3 Fluid view helper extension that renders structured data for the breadcrumb.

This TYPO3 extension is obsolete. Use EXT:schema instead. It provides a breadcrumb view helper with the same functionality.

Migration to the schema extension

With the schema extension you can't just have the breadcrumb as structured markup. You'll also get an API and many more view helpers to add, for example, organisations, persons, videos, job postings and many more types to your site in a structured way.

The migration is easy. Just replace

<sdb:breadcrumbMarkup breadcrumb="{breadcrumb}"/>

with

<schema:breadcrumb breadcrumb="{breadcrumb}"/>

in your Fluid template. That's it.

Requirements

The extension supports TYPO3 v8 LTS, TYPO3 v9 LTS, TYPO3 v10 LTS and TYPO3 v11 LTS.

Why should you use this extension?

Structured data enriches your content for search engines. The breadcrumb shows independently of the page tree the website hierarchy and categorization. With this view helper you can render a breadcrumb list according to schema.org.

You can find more information about the benefits of structured breadcrumb markup and examples in the Google feature guide.

If you want more than just include the breadcrumb as structured markup in your page, use the schema extension. With it, you can use an API or view helpers to output any content in a structured way. You can also migrate easily to the schema extension. have a look below.

Installation

Installation via Composer

The recommended way to install this extension is by using Composer. In your Composer based TYPO3 project root, just do

composer require brotkrueml/sdbreadcrumb

Installation as extension from TYPO3 Extension Repository (TER)

Download and install the extension with the extension manager module.

Usage

The view helper can be used in your Fluid template with the following syntax:

<sdb:breadcrumbMarkup breadcrumb="{breadcrumb}"/>

Just throw the result of the menu processor for the special property rootline from your TypoScript page object into the view helper, e.g.:

page.10 = FLUIDTEMPLATE
page.10 {
    // ... Your other configuration

    dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
        10 {
            special = rootline
            as = breadcrumb
        }
    }
}

By default the first entry - which is the start page - is stripped off, so it won't be shown in the structured data (which is not needed). You can change this behaviour with the additional parameter `stripFirstItem':

<sdb:breadcrumbMarkup breadcrumb="{breadcrumb}" stripFirstItem="0" />

As the result of the menu processor for the rootline is an array of an array, you can use your own generated structure, e.g. for categories:

$myBreadcrumb = [
    [
        'link' => '/',
        'title' => 'Start page',
    ],
    [
        'link' => '/category-1/',
        'title' => 'Category 1',
    ],
    [
        'link' => '/subcategory-1-1/',
        'title' => 'Subcategory 1-1',
    ],
];

The result will be in the compact JSON-LD format:

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@type": "WebPage",
                "@id": "https://example.org/category-1/",
                "name": "Category 1"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@type": "WebPage",
                "@id": "https://example.org/subcategory-1-1/",
                "name": "Subcategory 1-1"
            }
        }
    ]
}
</script>

You can test the generated structured data in the Structured Data Testing Tool.

Using the XML Schema (XSD) for Validation in your Template

It is possible to assist your code editor on suggesting the tag name and the possible attributes. Just add the sdb namespace to the root of your Fluid template:

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:sdb="http://typo3.org/ns/Brotkrueml/Sdbreadcrumb/ViewHelpers" sdb:schemaLocation="https://brot.krue.ml/schemas/sdbreadcrumb-1.0.0.xsd" data-namespace-typo3-fluid="true">

The relevant part is the namespace declaration (xmlns:sdb="http://typo3.org/ns/Brotkrueml/Sdbreadcrumb/ViewHelpers"). The content of the sdb:schemaLocation attribute points to the recent XSD definition.

You can also import the XSD file into your favorite IDE, it is shipped with the extension. You can find the file in the folder Resources/Private/Schemas/.


All versions of sdbreadcrumb with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
typo3/cms-core Version ^8.7.25 || ^9.5 || ^10.4 || ^11.5
typo3fluid/fluid Version ^2.5
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 brotkrueml/sdbreadcrumb contains the following files

Loading the files please wait ....