Nest Keywords

G'Day,


I'm probably wrong but I seem to recall there was a way to nest or embed one keyword inside another. I can't seem to find anything about it now and was hoping for some direction.



I am trying to use %globals_asset_attribute_X:Y% where Y is supplied by a metadata value - EG, %globals_asset_attribute_alt:%asset_metadata_image_id%%.



Obviously this isn't working or I wouldn't be asking here.



Any help appreciated.

No, you currently cannot nest keywords like this. :frowning:

There is a trick we picked up several months ago which might be worth trying and here are the steps:

  1. Create 3 containers with Presentation and Content Type set to Raw HTML for all
  2. In the first container insert the following:



    [html]

    <div style="display:none;">%asset_metadata_image_id%</div>

    %globals_asset_attribute_alt:

    [/html]


  3. In the second container:



    [html]

    %asset_metadata_image_id%

    [/html]


  4. Third container



    [html]

    %

    [/html]





    This should work. Although I am not sure if this could be broken by a future update :slight_smile: