More in this section

Forums / Developing with Sitefinity / Images indese Sitefinity admin?

Images indese Sitefinity admin?

4 posts, 0 answered
  1. Just64
    Just64 avatar
    10 posts
    Registered:
    24 Jul 2012
    05 Jul 2012
    Link to this post
    I have some .aspx pages inside sitefinity admin to products updates and stuff like that. All work perfect except the images. I now just add a simple .asp <img> and not even that works. I cant see the images at SF administration. Its there some kind of permissions thing for images ??
  2. Brett Whittington
    Brett Whittington avatar
    89 posts
    Registered:
    10 Aug 2012
    05 Jul 2012
    Link to this post
    It all depends on how you are referencing your images.  Are your images stored in Sitefinity Image Library?  Are you using virtual paths, relative paths, or absolute paths?

    If your images are stored in Sitefinity, you can access them using the virtual path ("~/image.jpg"), otherwise you are going to need to use an absolute path (http://www.mysite.com/images/images.jpg)

    The only way that I know of to get virtual pathing to work in SF without putting images into the Sitefinity library is to put all of your images into a folder called WebsiteTemplates under /App_Data/Sitefinity/

    Hope this helps, I apologize if I misunderstood your question.
  3. Just64
    Just64 avatar
    10 posts
    Registered:
    24 Jul 2012
    05 Jul 2012
    Link to this post
    I have 2 SF sites, one in 3.7, where i just put the images relative to the solution... and im want to do exactly the some in my second site with SF 5, and its not working...
    All the images r the solution and i can reach each one trough the SF admin in both sites, but in SF 5 nothing seems to work...
  4. Brett Whittington
    Brett Whittington avatar
    89 posts
    Registered:
    10 Aug 2012
    05 Jul 2012
    Link to this post
    I am not 100% sure I understand your response, it sounds like you are putting the images in an folder directly under your Sitefinity sites directory structure.  I remember trying to do exactly this in SF 4.4 and not being able to get it to work.  The solution I found for static content such as this dealt with the following folder structure found here.  For you to get this to work, I think you will need to do what I suggested previously, (albiet badly).

    1) Create a folder under App_Data/Sitefinity called WebsiteTemplates
    2) Create your images folder under website templates (or however you want your directory to look like)
    3) Add your images to this folder and then reference them in your sitefinity site.  You can do this using the "~" pathing or through relative pathing.

    The reason this isn't working for you in SF 5.0 is that SF is managing all of this static content for you.  If it is not found in the website templates folder it isn't able to manage the static content like images.
4 posts, 0 answered