Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > PDF file extension View modes: 
User avatar
Member
Member
gavin-wdm.com - 7/21/2011 6:58:56 PM
   
PDF file extension
Hi,

We have a client who "must" have the file extension .pdf on the end of their PDF files.

For example, they uploaded a file using the 'File' document type and it still uses the .aspx file extension.

Is it possible to make the file extension .pdf work?

Thanks.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/22/2011 3:58:15 AM
   
RE:PDF file extension
Hello,

You can retrieve a file uploaded in the content tree with any extension you like:

http://www.example.com/cms/getattachment/68e39375-7f4c-4954-b718-3f10e47f62c1/Testfile.pdf

You can also specify a custom URL extension in CMSDesk / <your page> / Properties / URLs by setting the property "URL extensions:". This will allow you to access the page with any extension you want.

Best regards,
Boris Pocatko

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/25/2011 1:20:46 AM
   
RE:PDF file extension
Hi Gavin,

Just for confirmation - have you set up extensionless on your site? Then the URL with .pdf extension should be accessible by default.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
gavin-wdm.com - 7/26/2011 10:31:39 PM
   
RE:PDF file extension
Thanks Ivan!

User avatar
Member
Member
gavin-wdm.com - 7/26/2011 10:31:49 PM
   
RE:PDF file extension
Thanks Ivana!