While exporting parent assets I want to get the path of the child asset stored in a custom property ('artbox') of the parent asset.
So in pimcore I can access the child asset's path in the following way: ParentAsset->getProperty('artbox')->getPath().
However, during the export if I run parentAsset:properties I get the following JSON
The path is null, although there is an asset in the 'artbox' property. Am I missing something? How can I access the path of the 'artbox' asset?
Please try the data query selector property#artbox:path. Properties are lazy-loaded, that is why you get the cid of the referenced artbox element but not the cpath.
While exporting parent assets I want to get the path of the child asset stored in a custom property ('artbox') of the parent asset. So in pimcore I can access the child asset's path in the following way:
ParentAsset->getProperty('artbox')->getPath().
However, during the export if I run parentAsset:properties I get the following JSON
The path is null, although there is an asset in the 'artbox' property. Am I missing something? How can I access the path of the 'artbox' asset?
Thank you