? Success

User tests: Successful: Unsuccessful:

avatar n9iels
n9iels
2 Aug 2015

This PR add Micro Structured Data to the Joomla! breadcrumbs. I followed this guide lines: https://developers.google.com/structured-data/breadcrumbs

Also add some code style and change some if ($condition) { to if ($condition) : to make the code more readable.

Test instructions

Confirm that all parameters are working correct like they used do

avatar n9iels n9iels - open - 2 Aug 2015
avatar n9iels n9iels - change - 2 Aug 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2015
Labels Added: ?
avatar Fedik
Fedik - comment - 2 Aug 2015

looks good,
but changing ul to ol can have side effect for people who use ul as selector in the breadcrumbs styling, I think better keep ul

and I do not see <meta property="position" content="<POSITION_NUM>">, that need for each item :wink:

avatar n9iels
n9iels - comment - 2 Aug 2015

@Fedik Thanks for noticing that :)

I add the <meta property="position" content="<POSITION_NUM>"> with help of the $key variable. But because it has to start with 1 instead of 0, I use $key + 1. I'm not sure if this is best way or not. Is there someone who think there is a better way to do this?

avatar Fedik
Fedik - comment - 2 Aug 2015

thanks!
$key + 1 is fine :wink:

avatar zero-24 zero-24 - change - 3 Aug 2015
Category Front End Modules
avatar zero-24 zero-24 - change - 3 Aug 2015
Easy No Yes
avatar ghazal
ghazal - comment - 4 Aug 2015

Test OK.
I am not very much into microdata, but the HTML generated looks allright.

avatar zero-24 zero-24 - change - 4 Aug 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 4 Aug 2015

RTC Thanks :smile:


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

avatar joomla-cms-bot joomla-cms-bot - change - 4 Aug 2015
Labels Added: ?
avatar zero-24 zero-24 - alter_testresult - 4 Aug 2015 - Fedik: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 4 Aug 2015 - ghazal: Tested successfully
avatar peterlose
peterlose - comment - 4 Aug 2015

Tested with Google's Structured data tester:

skaermbillede 2015-08-04 kl 13 02 55

avatar zero-24 zero-24 - alter_testresult - 4 Aug 2015 - peterlose: Tested successfully
avatar Fedik
Fedik - comment - 4 Aug 2015

hm, @peterlose on your test result still missed position

avatar n9iels
n9iels - comment - 4 Aug 2015

Strange, my test results where good. Did you fetch the last data?

avatar peterlose
peterlose - comment - 4 Aug 2015

Shoundn't position be itemprop as well? meta property is for RDFA

<meta itemprop="position" content="x" />

avatar Fedik
Fedik - comment - 4 Aug 2015

@peterlose right, I just noticed this also :smile:
@n9iels sorry, I gave you the wrong example, before

avatar n9iels
n9iels - comment - 4 Aug 2015

Changed it, thx for testing

avatar Fedik
Fedik - comment - 4 Aug 2015

@n9iels thanks, now is better :wink:

avatar Kubik-Rubik Kubik-Rubik - change - 6 Aug 2015
Milestone Added:
avatar Kubik-Rubik
Kubik-Rubik - comment - 6 Aug 2015

Thank you @n9iels and testers. Merged with ab3de64

avatar Kubik-Rubik Kubik-Rubik - close - 6 Aug 2015
avatar Kubik-Rubik Kubik-Rubik - change - 6 Aug 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-08-06 07:13:19
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 6 Aug 2015
avatar joomla-cms-bot joomla-cms-bot - close - 6 Aug 2015
avatar joomla-cms-bot joomla-cms-bot - change - 6 Aug 2015
Labels Removed: ?
avatar n9iels n9iels - head_ref_deleted - 6 Aug 2015

Add a Comment

Login with GitHub to post a comment