How to get the parent parent Keyword


(Nick Papadatos) #1

Matrix Version: 5.5.4.2

Hi squiz folk,

Can some tell me how to get the parent parent as a keyword?
What I have so far:
%frontend_asset_parent^as_asset:asset_url% - only gives me the immediate parent which how this keyword works but I just need to go up one more level

I did try but it didn’t work:
%frontend_asset_parent^asset_parent^as_asset:asset_url%

Thanks in advance
NickyP


(Nick Papadatos) #2

This worked %frontend_asset_parent^as_asset:asset_parent^as_asset:asset_url%


(Bart Banda) #3

You could also use %asset_linking_lineage% (Returns the current asset lineage based on the current asset in its lineage context.) to get all of the assets in the whole lineage in an array and then use ^index: modifier to target specific positions.


(Nick Papadatos) #4

That’s great Bart, will actually use that.

Cheers
Nick