Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Friendly URL Extensions Change View modes: 
User avatar
Member
Member
Yalın - 4/2/2010 12:41:47 PM
   
Friendly URL Extensions Change
We have uploaded and linked to hundreds of documents (pdf, doc, xls etc) keeping the default settings of Kentico with the friendly URL Extensions, so everything is linked as *.aspx extension.

We would like to change that to actually include the filenames of the files but don't want to have to change our linking manually, what do you suggest?

Also under the Kentico documentation for URLs and SEO
it says...

Files friendly URL extension

Specifies extension of files friendly URLs that will be used, such as ".aspx" or ".html".

Example: getfile/<node alias>/myimage.gif.aspx

When you ommit this value, the files friendly URLs will end with image extenstion: getfile/<node alias>/myimage.gif


But this doesn't seem accurate as we're only getting, myimage.aspx or myDocument.aspx and not filename at all.

Thank you.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/6/2010 6:31:09 AM
   
RE:Friendly URL Extensions Change
Hello,


We are really sorry. The documentation is incorrect. We will fix it as soon as possible.

The original extensions are accessible only via custom links.

It works like:
if you insert the image via WYSIWYG Editor it uses the Friendly URL extensions from Settings by default. If you display the image in transformation by GetAttachment it uses extensions from Files friendly URL extension settings. So if you add .gif GetAttachment will use that extension for all attachments.

We will update our documentation. Thank you for your notification.


Best regards,
Helena Grulichova

User avatar
Member
Member
Yalın - 4/6/2010 8:30:47 AM
   
RE:Friendly URL Extensions Change
Thank you for letting me know the documentation is incorrect, moving on to my actual question, how do we "switch" Kentico to respond to "corresponding" file extensions, while keeping the current links to those documents functional.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/6/2010 9:15:49 AM
   
RE:Friendly URL Extensions Change
Hello,


You can set up custom URL extensions in document Properties -> URLs then the file is accessible by original extension and the new one.

However, it is not possible to "switch" Kentico to use the original extensions. Files can be accessible by them but you need to insert the links with required extension manually.


Best regards,
Helena Grulichova

User avatar
Member
Member
Yalın - 4/6/2010 12:42:09 PM
   
RE:Friendly URL Extensions Change
This doesn't work either, I tried to do this at a site level with extreme frustration and utter failure, I think this whole part of the system is untested and full of inconsistent documentation.

Simply put...

As a first step The Kentico CMS does not allow for a file to be uploaded "as content" and be accessed via its native file-name regardless of any setting configuration I've tried.

Also separately but related from the issue, the "Attachments" method of linking to files, that generates urls like "/Sandbox/getattachment/6a1fa85b-50a5-4af7-9ba8-6109978fe615/Test-document.pdf" doesn't work whatsoever either.

If you're unclear as to the problem, let me know, I will give you a step-by-step how-to regenerate, if it is clear, please post a solution, this issue is really impacting business at this time.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/7/2010 2:59:33 PM
   
RE:Friendly URL Extensions Change
Hello,


I will try to show the behavior on some example.

1. Imagine that you have file "Test-document.pdf". You upload it in CMSDesk.

2. You enable "pdf" extension in document Properties -> URLs. You configured extension-less URLs on your web site.

3. You may write a link to this file like: "<path>/Test-document.pdf" it will find the correct file. However, if you select the file in some dialog it will use different extension (according to Friendly URL extensions settings).

4. If you display the file by GetAttachment it will use the extension according to Files friendly URL extension settings.

It is not possible to use pdf extension by default in dialogs/getattachments.

You could use a workaround if you configure .pdf as Files friendly URL. Then it will use pdf extension in GetAttachment. However, it is not helpful if you use more extensions (jpg, gif, ...).

Do you have any other experiences? Do you have any questions?


Best regards,
Helena Grulichova

User avatar
Member
Member
Yalın - 4/7/2010 3:23:54 PM
   
RE:Friendly URL Extensions Change
Let's make this more clear...

User image

User image

User image

User image

What am I doing wrong?
(I tried many other settings under URLs and SEO section, all of which have been frustrated by the same result)

User avatar
Member
Member
Yalın - 4/7/2010 3:31:28 PM
   
RE:Friendly URL Extensions Change
Also, "separate" from the issue at hand but still frustrating...

User image
User image
User image

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/8/2010 2:27:49 AM
   
RE:Friendly URL Extensions Change
Hello,


Thank you for the helpful screenshots. Could you please tell me if set up the IIS correctly? Please see here: Configuration of extension-less URLs for more information.

It displays the image correctly in my tests (instead of 404 error).


Best regards,
Helena Grulichova

User avatar
Member
Member
Yalın - 4/27/2010 10:38:08 AM
   
RE:Friendly URL Extensions Change
Our site setup doesn't allow us to do such changes to the system as a whole since we have so much developed as it is, it would simply not be feasible. We would appreciate it if you could set up a time where you could help us with our issue.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/29/2010 8:56:52 AM
   
RE:Friendly URL Extensions Change
Hello,


I am not sure what changes are not feasible. Changes of IIS settings? You can also consider the Express remote assistance: more information about Express remote assistence.


Best regards,
Helena Grulichova