object relation to download pdf document

object relation to download pdf document

Thursday 17 May 2007 11:52:36 am - 2 replies

Author Message

Niko Goers

Thursday 17 May 2007 12:49:59 pm

Hi,

try this:

<a href={concat("content/download/",$child.data_map.file.contentobject_id,"/",$child.data_map.file.id,"/file/",$child.data_map.file.content.original_filename)|ezurl}>{$child.name|wash()}</a>

The created link looks like: http://example.com/content/download/158/681/file/mypdfdocname.pdf

It should work. You just have to convert the link for your own requirements.

cheers

eZ Publish partner - http://www.all2e.com
http://share.ez.no/directory/companies/all2e-gmbh
http://ez.no/Partners/all2e-GmbH

Lords of Heaven - http://www.LoH-Gilde.de (Created with eZ Publish)
German online gaming guild

About me - http://www.NikoGoers.de

My roadmap, +1 are welcome: http://share.ez.no/community/roadmap/10889

Tech Services

Friday 18 May 2007 10:10:56 am

Thank you! You solved my problem..

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.