?
avatar pyberg
pyberg
9 Aug 2015

Steps to reproduce the issue

Featured Articles Menu Item Type
/templates/lmk/html/com_content/featured/default-item.php, line 26:

Expected result

h2 class="item-title" itemprop="headline"

Actual result

h2 class="item-title" itemprop="name"

System information (as much as possible)

Additional comments

Google wants the itemprop to be "headline"

avatar pyberg pyberg - open - 9 Aug 2015
avatar pyberg pyberg - change - 9 Aug 2015
The description was changed
avatar infograf768
infograf768 - comment - 9 Aug 2015

I guess you are right as it is a h2
In core : ROOT/components/com_content/views/featured/tmpl/default_item.php

I can see this in other parts of code in core like
ROOT/layouts/joomla/content/blog_style_default_item_title.php

etc.
We have 13 itemprop="name" and a few of them are concerned.

avatar zero-24 zero-24 - change - 9 Aug 2015
Category Front End
avatar bertmert
bertmert - comment - 17 Sep 2015

To be discussed, please:
Question for me is (because not only Google rules) if these itemprops in com_content should be changed into

itemprop="headline name"

or just

itemprop="headline"

Both are OK and allowed.
Shema org Articles defines "name" as "name of the item".

(I use name as a leading subpart inside headline but that's not the question here. Edit->or is it? itemprop name directly for the pure title, headline for the H tag including link etc.)

References
http://schema.org/Article
https://developers.google.com/structured-data/rich-snippets/articles

avatar bertmert
bertmert - comment - 8 Oct 2015

I'm just waiting for an answer before I start a new Pull Reuest ;-)

I use name as a leading subpart inside headline but that's not the question here. Edit->or is it? itemprop name directly for the pure title, headline for the H tag including link etc.

avatar joo7
joo7 - comment - 22 Mar 2016

just itemprop="headline":

because it is the headline (h2) of the item (blogpost/article/etc.) and it can be but does not have to be the name of this item (blogpost/article/etc.)

and searchengineoptimizers in times of voice-search (siri/hellogoogle/etc.) might be happy to give an item a different name and headline

and we will get b/c issues if the h2 headline is now both and we might want to separate them later...

avatar conconnl
conconnl - comment - 26 Jun 2016

I agree with @joo7
If you create the PR, we can test it for you.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7669.

avatar brianteeman brianteeman - change - 3 Aug 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-08-03 09:45:43
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Aug 2016
avatar brianteeman
brianteeman - comment - 3 Aug 2016

Closing as we have a PR for testing see #11410


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7669.

Add a Comment

Login with GitHub to post a comment