Thanks for the reply already clarifies. I am using Data List with my own data source version 1.2.
The Data List is supplied with an external data source that has a tree structure (serial> Season> Episode). When I want to retrieve a season using the API, I need the serial value.
Okay, so you have a custom data source, which is returning a list of items with the Season values, and you would like to access the reference in the original data source (API)? (so you can access the parent Serial object?)
My suggestion would be to construct the Data List item's value as a breadcrumb trail, either comma separated, (much like Umbraco does with the path of node IDs), e.g. "111,222", or serialized, e.g. { serial: "111", season: "222" } ... then you can access (deserialize) on the frontend (Razor) template, and query the original data source API however you need to with the appropriate parent Serial value.
contentment get parent node created content
Hello, I have a question about Contentment. How can I get the parent node of the created / edited content?
Hi Damian,
Would you be able to provide some more context of what you are wanting to do?
e.g. Which editor are you using? Which Contentment version? etc
Thanks,
- Lee
Thanks for the reply already clarifies. I am using Data List with my own data source version 1.2. The Data List is supplied with an external data source that has a tree structure (serial> Season> Episode). When I want to retrieve a season using the API, I need the serial value.
Hi Damian,
Okay, so you have a custom data source, which is returning a list of items with the Season values, and you would like to access the reference in the original data source (API)? (so you can access the parent Serial object?)
My suggestion would be to construct the Data List item's value as a breadcrumb trail, either comma separated, (much like Umbraco does with the
path
of node IDs), e.g."111,222"
, or serialized, e.g.{ serial: "111", season: "222" }
... then you can access (deserialize) on the frontend (Razor) template, and query the original data source API however you need to with the appropriate parent Serial value.Hope this helps?
Cheers,
- Lee
is working on a reply...