Hello
I have a document in french and the same document in english. (document type static_page
)
Let's say the french document has ID french-doc
, and let's say the english document has ID english-doc
.
Now, in the prismic doc i have a Group of Content Relationship field called alternative_page
.
In the french doc i have selected the "english doc" in the Group of Content Relationship field.
My query is:
[:d = at(my.static_page.alternative_page, "english-doc")]
With this query I'm trying to retrive the "french doc".
But I get the following error:
[function at(..)] unexpected field 'my.static_page.alternative_page' on line:1 col:11 in query '[[:d = at(my.static_page.alternative_page, "english-doc")]]'
[[:d = at(my.static_page.alternative_page, "english-doc")]]
^
Please help!