-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.1] mod_breadcrumbs - convert microdata to JSON-LD #30727
Conversation
We are in feature freeze for j4 please rebase to j4.1 |
@HLeithner can you help me how I rebase to 4.1? |
You can try to just target the 4.1-dev branch in github (you can edit this PR and select another target branch). Depending on how long it takes to merge and if 4.1-dev is uptodate it could work. Else: https://git-scm.com/book/en/v2/Git-Branching-Rebasing But it's maybe easier to create a new branch of the 4.1 branch and copy paste. |
changed base.... already checked that mod_breadcrumbs/tmpl/default.php J4 = J4.1 |
Bad news: Because the 4.1-dev branch is not up to date with latest changes in the 4.0-dev branch, this PR now shows all changes in 4.0-dev since the 4.1-dev was updated to 4.0-dev last time, and not only the changes from this PR. Maybe that will be fixed by just waiting for the next update of the 4.1-dev branch from 4.0-dev, but I'm not sure about that. |
@hans2103 keep it as it is for the moment. |
Using Patchtester I get this: The file marked for modification does not exist: administrator/components/com_media/resources/scripts/components/toolbar/toolbar.vue Is this to do with the base change? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30727. |
@ceford Yes, you should wait until the 4.1-dev branch is up to date, and then you can test this PR only on a 4.1 and not on a 4.0 installation. |
Should be good now - pushed it up into 4.1-dev (needed to swap the branches around to make github realise) |
Drone seems to have a problem. I think when adding a change (e.g. those requested by review above) it will be fixed. |
I have tested this item ✅ successfully on 4710faf '''
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30727. |
# Conflicts: # modules/mod_breadcrumbs/tmpl/default.php
Co-authored-by: SharkyKZ <sharkykz@gmail.com>
Co-authored-by: SharkyKZ <sharkykz@gmail.com>
Co-authored-by: SharkyKZ <sharkykz@gmail.com>
I have tested this item ✅ successfully on fdf12e3 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30727. |
@Gostn hve you checked the 'head' element? |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30727. |
Pull Request for Issue # .
Summary of Changes
With #25117 in mind and the possible adaptation of Spatie\SchemaOrg in mind I would like to prepare current breadcrumbs by converting the Microdata into JSON-LD structure.
But not only with that possible adaptation in mind... The JSON-LD format is the recommended format.
The HTML code will be cleaner when the data is moved to JSON-LD format
Another benefit of this change is that the current page will always be added to the data. This is not the case in the current situation with Hide Last Item is active.
Testing Instructions
npm run something:something
is requiredActual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
While inspecting the element and scroll to top and inspect element
<head>
. It should contain the following<script>
tag.Documentation Changes Required