How to configure BreadcrumbList

Created on 23 February 2021, almost 4 years ago
Updated 23 August 2024, 4 months ago

Problem/Motivation

I have to implement the object BreadcrumbList in my site that have to be rendered in that way:

"@type": "BreadcrumbList",
"itemListElement": [{
  "@type": "ListItem",
  "position": 1,
  "item": {
    "@id": "[site:url]",
    "name": "[site:name]"
  }
}, {
  "@type": "ListItem",
  "position": 2,
  "item": {
    "@id": "[node:category_name:url]",
    "name": "[node:category_name:title]"
  }
}, {
  "@type": "ListItem",
  "position": 3,
  "item": {
    "@id": "[current-page:url]",
    "name": "[node:title]"
  }
}]

I cannot find any documentation on how to obtain that, anyone can help me?

Steps to reproduce

Proposed resolution

I suggest to extend the documentation on how to implement that in the Module documentation

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.1

Component

Documentation

Created by

🇮🇹Italy mwnemesis Milano

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇦Ukraine mykola dolynskyi Poltava

    I did it but the result is not including the current page (in my example is missing the "position: 3" element) is there a way to include it?

    and this seems to be a violation

    A BreadcrumbList is an ItemList consisting of a chain of linked Web pages, typically described using at least their URL and their name, and typically ending with the current page.

    https://schema.org/BreadcrumbList

  • 🇺🇦Ukraine mykola dolynskyi Poltava

    I use the Breadcrumb Manager module to show the current page title at end

    worked for me, thanks @jlj

Production build 0.71.5 2024