Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Media library migration View modes: 
User avatar
Member
Member
beau.cowan-rrpartners - 10/8/2013 1:27:08 PM
   
Media library migration
We have a site that is on the SAAS, and we are setting up a test environment on another server, not SAAS, to train the users on the system. We were able to migrate over the database, as well as our custom templates and webparts, but we are having a problem with the media library files.

We are using permanent url's for the media library, and we want to keep that same setting for the test environment. I was able to move the image files over with no problem, but they are not displaying properly on the site due to the permanent url's. I've also tried adding a new image file to the media library, only to have the same results as the migration.

Is there a setting or anything that I need to use in order to get this to work?

User avatar
Member
Member
beau.cowan-rrpartners - 10/8/2013 1:36:37 PM
   
RE:Media library migration
Update

We found that when we remove the "jpg?width=960&height=298&ext=.jpg" that gets added to the end of the url actually shows the image. When we place it back in it causes the error. Is there a way to take this querystring off of the image link?

User avatar
Member
Member
beau.cowan-rrpartners - 10/8/2013 2:14:37 PM
   
RE:Media library migration
After following the Knowledge Base article found here: How to set pure extension-less URLs without support for .aspx extension

We added a couple of settings to our web.config.

<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
...
</system.webServer>

User avatar
Member
Member
kentico_edwardh - 10/8/2013 7:28:19 PM
   
RE:Media library migration
Hello,

The Permanent link in for a media file consists of the application path/getmedia/FileGUID/file.extension. I am not exactly sure how you moved your images, but you would need to ensure the Media_File.FileGUID is the same between both instances in order for the previous Permanent links to function in your new site. This can be achieved by either restoring a copy of the database, or by using the import/export functionality and ensuring the media files are included as part of the export.
You can then set the Use permanent URLs setting in Site Manager -> Settings -> your site -> Content > Media > General, to force the system to use Permanent URLs for your media files.

Best Regards,
Edward Hillard