Can some explain the new schema.org implementation?

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
GillianBPP
Joomla! Explorer
Joomla! Explorer
Posts: 396
Joined: Wed Oct 01, 2014 10:25 am

Can some explain the new schema.org implementation?

Post by GillianBPP » Tue Jan 02, 2024 12:37 pm

I am somewhat confused as I'm going through the tedious process of amending the updated files in J5.0.1 and removing all the itemprops/itemtypes. Why is this? How does the world wide web know what type of page it being presented with? The announcement 'Joomla 5.0 and 4.4 are here' says:

"Schema.org Integration: Automatic activation of Schema.org data for organisation and site names enhances search engine optimisation."

That's all you get, now. No blog, article, image, language types, etc. Is that right?

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25010
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Can some explain the new schema.org implementation?

Post by pe7er » Tue Jan 02, 2024 1:24 pm

Joomla 3 and Joomla 4 used the Microdata format to add the schema.org data of type "Article".
Which meant that the HTML output of an article template needed to have all those itemscope/itemtype/itemprop defined.

Joomla 5 uses plugins to add the schema.org data to your content using the JSON-LD format.
This is much easier to implement because it adds the schema to the HTML of a page using plugins.
In System > Plugins > filter on "Type" "schemaorg" you can see all available schemas.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12802
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Can some explain the new schema.org implementation?

Post by brian » Tue Jan 02, 2024 2:27 pm

There is a bit more to it than that, although sadly I havemt seen any documentation covering it.

J3/4 used Microdata and j5 changed to use JSON-LD formats. The microdata was automatically added to your content by appropriate tags in the markup. The JSON is not added in the same way.

Firstly there is a backwards compatibility setting in the content plugin that will automatically add JSON values that should be the same as the old microdata values

Secondly to actually use the json to its full capabilities there are now a series of schema plugins. These are selected in your content item and contain a much richer set of fields for you to complete.

Thirdly you dont want to have both microdata and json-ld formats which means that if you have any template overrides you must remove the old markup from them - you dont need to add anything
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

GillianBPP
Joomla! Explorer
Joomla! Explorer
Posts: 396
Joined: Wed Oct 01, 2014 10:25 am

Re: Can some explain the new schema.org implementation?

Post by GillianBPP » Wed Jan 03, 2024 3:33 pm

Thank you, both. So, looking at the plugin 'BlogPosting', if I allow it to include the extension 'Articles', it will add a schema type of 'blog' to every article, whether it's actually a blog or not? Even for articles used as a single article menu item, or those included via Articles Anywhere?

Update: I have done some testing, and it does only applies to menu item type of Blog.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2733
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Can some explain the new schema.org implementation?

Post by ceford » Fri Jan 05, 2024 10:07 am

Some documentation that may be helpful:

https://magazine.joomla.org/all-issues/ ... n-joomla-5

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12802
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Can some explain the new schema.org implementation?

Post by brian » Fri Jan 05, 2024 10:13 am

@gillianbpp quite correct there currently is no schema plugin for articles. I have written one for joomla 5.1 but it is waiting tests https://github.com/joomla/joomla-cms/pull/42402
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
ManuelVoileux
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Sun Nov 24, 2013 8:24 am
Location: France
Contact:

Re: Can some explain the new schema.org implementation?

Post by ManuelVoileux » Sun Jan 07, 2024 12:21 pm

Hello,
I wish you all a sparkling 2024 year ! :)

I am using Route 66 , for the Yoast-like-SEO-guide, and for the nice url-router. Route 66 features a metadata plugin, which automatically picks-up the image links, title and metadata, to inject in the header of the article. But it proposes only 2 schema types : Article and Product.

With Joomla 5, I am working with the schema tab, which features more types. From the plugin ScholarlyArticle shared by @daneel
https://forum.joomla.fr/forum/th%C3%A8m ... ost2057847
I have prepared a few schema-type-plugins : NewsArticle, ImageGallery, VideoGallery, VideoObject, LearningResources, FAQPage, Guide, Periodical, that I am willing to share with the Joomla community.

BUT the Joomla-core-schema-tab needs to be filled in manually by copy-paste . No automatic feed from the existing data in the article.

Having a synchronization between the metadata and the Schema tab is a must. Hope it will come in the future 5.x versions of Joomla.

Thank you all for Joomla, for your work, and for the help that I get from the community !

GillianBPP
Joomla! Explorer
Joomla! Explorer
Posts: 396
Joined: Wed Oct 01, 2014 10:25 am

Re: Can some explain the new schema.org implementation?

Post by GillianBPP » Sun Apr 21, 2024 11:49 am

I was under the impression that itemprop="whatever" in php template files were being dropped in J5 in favour of schema.org implementation.

Why then, in the recent J5.1.0 update does the templates/cassiopeia/html/com_content/article/default.php now include itemprop="language"?

Line 38 used to be this:

Code: Select all

    <meta content="<?php echo ($this->item->language === '*') ? Factory::getApplication()->get('language') : $this->item->language; ?>">
but now it's this:

Code: Select all

    <meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? Factory::getApplication()->get('language') : $this->item->language; ?>">

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2733
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Can some explain the new schema.org implementation?

Post by ceford » Sun Apr 21, 2024 1:29 pm

You have quoted a reference to a user provided override which is not present in a J5.1 distribution. The default is as in your first code quote.


Post Reply

Return to “Administration Joomla! 5.x”