More in this section
Forums / Designing with Sitefinity / Designing Templates with images embedded

Designing Templates with images embedded

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    16 Dec 2009
    Link to this post
    I am setting up a template for a site.  I place the company logo in the header div of the template.  If I create a child page of the home page the logo does not appear. 

    I tried ~/image/logo.jpg and image/logo.jpg for the image path in the image tag.  The top pages like home has no problem showing the logo with image/logo.jpg.   If I use ../ the child pages are able to the see the image, however that messes up the parent pages.

    I have the logo in my image directory under themes, and also created image directory in the root of the site.  I am using the IIS built into VS2008 to display the site, in case that makes a differences.

    What is the best way to handle this?

    David 
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Dec 2009
    Link to this post
    Hello David ,

    Thank you for using our services.

    Try using asp:Image control with runat server, then set the ImageUrl with the ~ so that it resolves the link on each level in page hierarchy:
    <asp:Image ID="image" runat="server" ImageUrl="~/Files/imageFile.png" />


    Greetings,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    16 Dec 2009
    Link to this post
    Thanks, I will give that a shot.  I completely forgot about the image control.

    David
Register for webinar
3 posts, 0 answered