PDF filename extension in URL

Author Message

Elena Ivanova

Monday 31 March 2008 1:45:29 am

Hello,

Automatically generated PDF files using built-in PDF export have URLs like: .../content/pdf/node_id.

Is it possible to have .pdf extension in this URL, i.e. .../content/pdf/node_id.pdf or even better .../content/pdf/node_name.pdf

Many thanks for your help,
Elena

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

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