Use of paragraph fields when using pivot

Created on 25 July 2020, over 4 years ago
Updated 12 August 2024, 3 months ago

Hi, I'm having a problem with accessing a paragraph field in a node when I enable pivot. The situation is as follows:

I have marked up a content type as a Book through the Metatag and Schema Metatag modules. This content type has a paragraph reference field and that field can contain multiple paragraphs. The paragraph type has multiple fields, one of which contains the selling price of that book at a certain store.

On the Metatag configuration page, I have created a standard metatag of that specific content type, and have enabled the Schema.org:Book for it. Under SCHEMA.ORG: BOOK > WORKEXAMPLE > POTENTIALACTION > CONSUMEACTION > EXPECTSACCEPTANCEOF I have enabled AggregateOffer and Pivot.

In the price field I have entered the token [node:field_paragraph:entity:field_price:value]

When I check the structured data of the node, the PotentialAction field is empty. Even the fields with fixed values are not visible.

But when I disable Pivot and use the token [node:field_paragraph:0:entity:field_price:value], I can see the value of the price field of the first paragraph of that node, and the other fields that have been filled in with fixed values are visible as well.

I would like to know if this is a bug, and if so, if it could be fixed. Or if this is by (current) design. In that case, could this issue then be considered a feature request?

Thank you in advance.

💬 Support request
Status

Active

Version

1.7

Component

Miscellaneous

Created by

🇳🇱Netherlands SurajHo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India newswatch Delhi/Bangalore

    I too am clueless on this.

    Most sites nowadays use paragraphs heavily.

    Unless you can use paragraph fields, a lot of content types cannot use Schema.org Metatags.

    It is also not clear how to use (if at all, in such a case) pivots to serve the purpose since documentation is virtually non-existent.

Production build 0.71.5 2024