-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update to use JMicrodata library rather than hard coded values #8933
Conversation
We have the JMicrodata library, lets actually use it.
I mean this was a deliberate decision to hardcore (see discussion at #3358). Whilst I'm open to reviewing those kinds of decisions I don't think much (if anything) has changed since then. But willing to hear arguments otherwise :) |
Using library would be a nice first step to get rid of microdatas in HTML at all if there would be a simple single switch somewhere to suppress output. For guys that use JSON-LD (more flexible than microdata if Google changes structured datas rules (again and again and again)). Now you have to create several overrides or have to remove microdata by plugin. Not possible to show them only robots. And so on... Just saying that |
The JMicrodata api could be made more readable i suggest that these are added:
so that
it can be made (which is more readable and searchable):
|
There was a PR to include a plugin which had a quite simple markup to then generate proper microdata: #4118 |
Setting to needs review so the cms maintainers can make a decision based on comment above by @wilsonge This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8933. |
Tested the patch anyway (just noticed its set to needs review) & after patch, each article title now has a ">" at the start of it so, I guess the patch needs cleaning up before testing further. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8933. |
@sandstorm871 Can you give additional details on where your seeing titles with additional ">" at the start? Maybe there is a template or plugin specific issue causing the addional ">" at the start of the title... |
@ggppdk I agree The JMicrodata api |
http://www.mynewsite.me.uk/ace |
@sandstorm871 Thanks. I'm not sure what's happening but, I now can see it's with the mod_articles_latest changes. I'll see if I can pin down what is at the root of that extra caret (or pull those changes from the PR). |
Nuances of using the JMicrodata plugin, the documentation needs to be clearer on proper useage of the different parameters.
@sandstorm871 mod_articles_latest changes was the first item I changed. Looks like I had used a There are still plenty of nuances to the JMicrodata API I don't yet understand. In anycase the reported extra caret > before mod_articles_lates article titles should be resolved |
Myself, Chris, Roland and Viktor have just discussed this and I think our decision is to stick with hardcoding this for the same reasons we chose not to use it in the first place. I'm going to close this PR and the other module ones for this reason |
We have the JMicrodata library, lets actually use it.
Testing
https://docs.joomla.org/Testing_Joomla!_patches
com_content
ormod_articles_latest
(you can't test if you have an override, since you would just be testing the override)https://developers.google.com/structured-data/testing-tool/