- Posts: 12
COMMUNITY FORUM
Additional schema.org
- Bảo hộ lao động tốt
-
Topic Author
- Offline
- New Member
Less
More
3 years 9 months ago #179218
by Bảo hộ lao động tốt
Additional schema.org was created by Bảo hộ lao động tốt
Dear,
K2 adds schema.org or not?
K2 adds schema.org or not?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
3 years 9 months ago - 3 years 9 months ago #179219
by JoomlaWorks
Replied by JoomlaWorks on topic Additional schema.org
No, because it utilizes Google's Structured Data which is much better.
Last edit: 3 years 9 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.
- Bảo hộ lao động tốt
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 12
3 years 9 months ago #179220
by Bảo hộ lao động tốt
when I "Set a global content type: product" was warned by google that the product code is missing. Something like "SKU" or "itemprop=mpn".
How to fix this problem?
Replied by Bảo hộ lao động tốt on topic Additional schema.org
Thank you.No, because it utilizes Google's Structured Data which is much better.
when I "Set a global content type: product" was warned by google that the product code is missing. Something like "SKU" or "itemprop=mpn".
How to fix this problem?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
3 years 9 months ago #179227
by JoomlaWorks
Replied by JoomlaWorks on topic Additional schema.org
Although the option exists, "products" require additional data to validate. And since K2 is primarily for targeted towards article content, you will have to a) create an override for item.php (getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates) so you can add code, b) prepare extra fields as product options, c) retrieve these extra fields (getk2.org/documentation/tips-a-tricks/display-single-extra-fields-anywhere-in-your-k2-content) and convert them to Structured Data JSON and finally d) inject them in the Structured Data output by K2.
It's not hard to do so, but it's beyond the scope of this support forum.
It's not hard to do so, but it's beyond the scope of this support forum.
Please Log in or Create an account to join the conversation.
- Bảo hộ lao động tốt
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 12
3 years 9 months ago #179247
by Bảo hộ lao động tốt
Replied by Bảo hộ lao động tốt on topic Additional schema.org
Thank you!
Please Log in or Create an account to join the conversation.