Keyword replacement: Referring asset parent


(David Herrington) #1

Hi all

 

I have a custom form that allows a customer to submit feedback about the previous page they were on.

 

On the 'thank you' page, I show the user a link back to the page they were on by using the keyword replacement %referring_asset_name%. This works perfectly.

 

Does anyone know how to write a keyword replacement to also show the parent asset. For example:

 

Thanks for giving us your feedback. What do you want to do now?

  • Go back to %referring_asset_name% (in section PARENT)
  • Go to home page

Any help would be great as I can't seem to crack this one. Is it even possible?


(Peter McLeod) #2

Hi

 

if your version supports the asset_parent keyword, then something such as this:

%referring_asset_assetid^as_asset:asset_parent^as_asset:asset_name%

could also get other attributes from the parent in the same way.

 

There were some @squizmatrix tweets recently on using the parents keywords like this.

 

Thanks

Peter


(David Herrington) #3

Thanks Peter

 

Interestingly I saw those tweets and tried to build the keyword replacement as you've described above but it didn't work.

 

I'm on version 5.1.3.0. Is there a minimum version you have to be on for the asset_parent to work do you know?


(David Herrington) #4

Answered my own question: tweet here from Squiz saying you need v5.2.4.0

 

https://twitter.com/squizmatrix/status/762777986949013504