Image folder in root
Hi,
I am developing a project in sitefinity 4.4. I am having a foler 'Images' under my root folder.
I hosted my site on IIS and now i am not able to view the images on my site.
I changed the folder name to 'Images_Test' and then it works fine.
Is there any issue with the folder name - 'Images' in sitefinity 4.4?
Please reply urgently.. i need to change my code as per....
Thanks & Regards,
Shalaka.
Hi Shalaka,
Dear Shalaka
Hi,
“Images” is the default root mapping for images stored in Sitefinity’s Libraries module. In version 4.1, Sitefinity’s virtual paths cannot match with physical paths for Libraries.
This is necessary for performance reasons with version 4.1. To avoid this conflict you have to rename the physical folder or change the virtual root in Libraries configuration. To change the configurations please go to:~/Sitefinity/Administration/Settings/Advanced>Libraries>Images>UrlRoot and change the value to something like “sf-images”.
Please let me know if you have anymore questions.
All the best,
Grace Hallwachs
the Telerik team
Thanks All For your quick reply....
I am having the same problem. My html images within my master page are broken. Unfortunately, changing the name of my images folder did not work. Any other suggestions?
I appreciate your time and help,
Maria
I just got it to work!! I had to form my image link to this source: "../../../../../sf-images/logo.png"
Why won't it work with "~/sf-images/logo.png"?
Regardless, I'm glad this is working now :)
Maria
Hey Maria,
The ~ only works if you have runat="server" on an asp.net control...so it can be resolved by asp.net.
In plain html though its just "/sf-images/logo.png".
I prefer that route over ../../../../../ especially in widgets because the image will only resolve on a page at that level.
Cheers!
Ah, yes that makes total sense! Thank you for this information. I know where I need to make my changes now. :)
Maria