Providing an asset ID as a keyword to globals_asset_name

This doesn’t work!

%globals_asset_name:{asset_parent}%

I’m in an asset listing (child of another listing) and I can successfully get the ID of the parent asset using %asset_parent%.

Now I want to print the name of the parent, but I’m not sure how to pass its ID to %globals_asset_name%.

I’m sure it’s simple, but I can’t find the answer.

Try:

%asset_parent^as_asset:asset_name%

2 Likes

Beautiful, thanks Bart.

I looked at as_asset in the manual but didn’t grok it.

1 Like

Bart, another question!

Is it possible to chain these commands? I’d like to find the parent two levels up.

I tried this.

%asset_parent^as_asset:asset_name^asset_parent^as_asset:asset_parent%

Try:

%asset_parent^as_asset:asset_parent^as_asset:asset_name%

Much appreciated. Thanks Bart.

1 Like