Skip to content

Instantly share code, notes, and snippets.

@jverweijL
Created October 5, 2018 07:24
Show Gist options
  • Select an option

  • Save jverweijL/ec7e1302eefb9a6c57d771041dd1d608 to your computer and use it in GitHub Desktop.

Select an option

Save jverweijL/ec7e1302eefb9a6c57d771041dd1d608 to your computer and use it in GitHub Desktop.

Get data from ADT to template

Sometimes you need get data from ADT to template (or the other way round)

We often need the viewURL to link to full content. You can add attributes to the request in the ADT:

${request.setAttribute("viewURL", viewURL )}

Read them in the webcontent template:

<#assign viewURL = request.attributes.viewURL!"" >

Don't forget to clean up!

${request.setAttribute("viewURL", "" )}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment