AnsweredAssumed Answered

iterating a pdf collection with @makeurl

Question asked by leonardo.celati on Apr 8, 2014
I have a collection holding a set of pdf files.

On the .ftl template I am iterating the collection

<#list documents as document>

  <a href="<@makeurl asset=document />">${document.title}</a>


but as this approach works for any asset (html, image, ecc..) I discovered too late that it's not working for other 'not asset' type.

By not working I mean it's resulting in a kind of direct link that obviously is not pointing to anything.

<!– This is the real path in Alfresco Share –>
<a href="/wcmqs/resources/filename.pdf">My Pdf</a>

How can I solve it ?