Skip to content

Instantly share code, notes, and snippets.

@tak1n
Created October 17, 2014 07:15
Show Gist options
  • Save tak1n/aef08c0ed6d623432187 to your computer and use it in GitHub Desktop.
Save tak1n/aef08c0ed6d623432187 to your computer and use it in GitHub Desktop.
{% set field = content.getField('file') %}
{% set uri = 'content/download/' ~ content.contentInfo.id ~ '/' ~ field.id ~ "/file/" ~ field.value.fileName|escape( 'url' ) %}
{% set uri = path( 'ez_legacy', {'module_uri': uri} ) %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment