Can some explain the new schema.org implementation?
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
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
-
- Joomla! Explorer
- Posts: 396
- Joined: Wed Oct 01, 2014 10:25 am
Can some explain the new schema.org implementation?
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?
"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?
- pe7er
- Joomla! Master
- Posts: 25042
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Can some explain the new schema.org implementation?
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.
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
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- brian
- Joomla! Master
- Posts: 12807
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Can some explain the new schema.org implementation?
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
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/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
-
- Joomla! Explorer
- Posts: 396
- Joined: Wed Oct 01, 2014 10:25 am
Re: Can some explain the new schema.org implementation?
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.
Update: I have done some testing, and it does only applies to menu item type of Blog.
- ceford
- Joomla! Hero
- Posts: 2762
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
- brian
- Joomla! Master
- Posts: 12807
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Can some explain the new schema.org implementation?
@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/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
- ManuelVoileux
- Joomla! Intern
- Posts: 70
- Joined: Sun Nov 24, 2013 8:24 am
- Location: France
- Contact:
Re: Can some explain the new schema.org implementation?
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 !
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 !
Manuel
voileux.org
voileux.org
-
- Joomla! Explorer
- Posts: 396
- Joined: Wed Oct 01, 2014 10:25 am
Re: Can some explain the new schema.org implementation?
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:
but now it's this:
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; ?>">
Code: Select all
<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? Factory::getApplication()->get('language') : $this->item->language; ?>">
- ceford
- Joomla! Hero
- Posts: 2762
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Can some explain the new schema.org implementation?
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.