Is there a ‘this’ keyword when using query lang inside a structure item ?
And, can I do something like this to get the sorting number of a page whose ID is a field in the structure item ?
items:
label: Items
type: structure
width: 1/1
fields:
id:
label: ID
type: text
number:
label: Product Number
type: info
text: >
{{ site.find(this.id).num }}
...
This is an example of what is on the .txt file for this structure field:
Items:
-
id: apple-bank
quantity: 1
price: 20
tax: 3.4710743801653
frames: "0"
taxrate: 21
title: Apple Bank
sum: 20
sumtax: "3.4710743801653"
-
Thanks