Kentico CMS 6.0 Developer's Guide

GetSharePointFile page

GetSharePointFile page

Previous topic Next topic Mail us feedback on this topic!  

GetSharePointFile page

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The GetSharePointFile.aspx page is a special page located under the ~/CMSModules/Sharepoint/CMSPages directory. The correct URL to access the page looks like the following:

 

~/ CMSModules/Sharepoint/CMSPages/GetSharePointFile.aspx?server=server_name&name=Images/Sunset.jpg

 

It downloads the specified file from the SharePoint server and sends it further to the user. Credentials configured in Site Manager -> Settings -> Integration -> Microsoft SharePoint are used for authentication by the web service. You can control the Content-Disposition HTTP header using the disposition query parameter.

 

For images, it supports maxsidesize, width and height parameters to control the image size. Kentico CMS cache is used for images, you can configure it in Site Manager -> Settings -> System -> Performance -> Cache images (minutes).

 

 

 

Important!

 

Because the settings configured in Site Manager -> Settings -> Integration -> Microsoft SharePoint are automatically used for authentication by the GetSharePointFile.aspx page and since the URL to access the page can be entered manually, it is highly recommended to enter the credentials of a user that is authorized to access only the files you want to display on your website.