How to display file name and url

Author Message

Seravi Leonart

Tuesday 19 April 2005 5:40:23 pm

Say I have these binary files

After fetching them,
How can I display a link directly to the file with the name of the file as the link?

<a href="??? - file url">Filename????</a>

Eirik Alfstad Johansen

Wednesday 20 April 2005 1:15:06 am

Hi Seravi,

Do

{$node.data_map.binary_attribute_identificator|attribute(show)}

to see where you can find the data you need.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Seravi Leonart

Wednesday 20 April 2005 3:37:43 pm

Hi,

I tried but seemed like the only thing I'm getting here is this line:

Attribute Type Value

Eirik Alfstad Johansen

Thursday 21 April 2005 12:22:58 am

Hi Seravi,

Then you're not doing it right. :)

Have you replaced "binary_attribute_identificator" with the actual identificator of your binary attribute?

You could also try {$node.data_map|attribute(show)} in order to find out what it is.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Ɓukasz Serwatka

Thursday 21 April 2005 12:24:15 am

Code example is in ezbinaryfile.tpl

All data types templates are located in folder:
design/standard/templates/content/datatype/view

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Seravi Leonart

Thursday 21 April 2005 8:22:11 am

Thanks,

I got it now

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