User tests: Successful: Unsuccessful:
Pull Request for Issue #38229
Fixes also: Position is wrongly set if the menu pathway for example contains Heading menu items.
getHome()
that can be used without redundant code elsewhere to get the home item.$app->getLanguage()
if needed.$homeCrumb
) in mod_breadcrumbs.php
if showHome
is disabled.default.php
:
showHome
is disabled.<SCRIPT ld.json>
if BraedCrumbList is populated.mod_breadcrumbs
module. On all pages. Play around with the settings in the following.The visible breadcrumb hasn't changed with this pr, only the ld+json
part.
In frontend click through your menus and check the source code of displayed codes.
Search for ld+json
to find a <script>
tag like
<script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"BreadcrumbList","itemListElement":[...]}</script>
You can also use Browser Addons like "JSON-LD Tester" for chromium browsers (Chrome, Vivaldi ...) which uses Google testing tools.
position
go from 1 to x in +1 steps.position: 1
."itemListElement":[]
on startpage if showHome
is disabled in mod_breadcrumbs.No errors in structured data when testing.
A legend is going around that the last element must not have a @id
(= forbidden) if it's the current page, which is wrong (I've tested that on several pages that use other tools for ld+json). Because I
don't want endless discussions here I've left the old behavior in mod_breadcrumbs (no @id
for last element if it's current page).
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End |
Labels |
Added:
?
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-07-29 19:51:46 |
Closed_By | ⇒ | roland-d |
Thank you
I have tested this item✅ successfully on 8ac90ae
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38285.