Hello again,
I tried to add a new field, it doesn't change anuything, but maybe I did something wrong:
It is a text field.
I assigned it to my item type (Article).
In the tab "formulaire de saisie", I chose to hide it both in frontend and backend.
Then on the right side of the screen (FIELD TYPE specific configuration):
Tab Edition:
Tab Values: Use the field as a group = no / default = Rouch Energies (the name of the organization which is the publisher, but I don't understand how this can turn into publisher":{"@type":"Organization","name":"Rouch Energies"} ...??)
Tab Appearance / tab Layout :
Values layout : custom_publisher (after I duplicated it, and I have some question about this file)
Tab SEO :
Support Microdata / microdata property : publisher (please note that this property IS in the microdata list)
Then I put this new text field in the renderonly position of my item template.
About the php file :
I replaced style="display: inline" by style ="display: none".
But I am a bit confused about this section of this file :
Code:
// Add microdata to every value if field -- is -- in a field group
if ($is_ingroup && $itemprop) $field->{$prop}[$n] = '<div style="display:none" itemprop="'.$itemprop.'" >' .$field->{$prop}[$n]. '</div>';
$n++;
if (!$multiple) break; // multiple values disabled, break out of the loop, not adding further values even if the exist
To me, it looks like if nothing is going to happen if field is NOT in a field group.
Which is not, right?
I ran another test over Google Structured Data, and I still have the Publisher value missing.
I still think it would be a lot easier if only I could add:
Code:
publisher":{"@type":"Organization","name":"Rouch Energies"}
in the php file that writes the Article microdata ...
But to do this, I need to know which file is writing the code.
Would you please tell me?
Thank you.