PDF filename extension in URL

PDF filename extension in URL

Monday 31 March 2008 1:45:29 am - 3 replies

Author Message

Bartek Modzelewski

Monday 31 March 2008 7:14:40 am

Hello Elena,

There is absolutly no problem with having <i>.pdf</i> in URL, just modify link in your temptate into:

{concat('/content/pdf/',$node.node_id,'.pdf')|ezurl}

content/PDF module will have no problem with that, will give you PDF as it should :)

Cheers
Bartek

Baobaz
http://www.baobaz.com

Elena Ivanova

Monday 31 March 2008 11:03:02 pm

Hello Bartek,

Many thanks for your help. The solution was realy straightforward.

Do you know if it's possible to have node.name instead of node_id as filename in generated PDF? I tried with concat('/content/pdf/',$node.name), but it doesn't work?

Regards,
Elena

Ekkehard Dörre

Monday 07 April 2008 5:58:31 am

Hi Elena,

you'll need the urlalias:

http://now.ezpublish.no/eng/content/pdf/Company/News/Lyon-attracts-world-leaders

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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.