Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • OliverH 2 posts 22 karma points
    Jan 05, 2011 @ 10:56
    OliverH
    0

    Links to images in Master Template

    Hi, I´m a total Umbraco Newbee.

    My project consists of a Master Template which is basically a header and a footer. I´ve build a starting page which contains four different subpages and under this should be different produkt pages.

    So, i got problems with the logo which is displayed in the header. the path points to media/images/picture.png.

    When I created the starting page is displayed. Also when rendering the different subpages the logo is shown, but by creating a produkt page no logo is displayed in the header.

    I´ve tried to solve this problem with changing the path to image in //localhost/media/...  this works, but of course only on my development machine.

    Thanks for your time.

     

     

  • Chris Koiak 700 posts 2626 karma points
    Jan 05, 2011 @ 11:06
    Chris Koiak
    0

    Hi Oliver,

    If you point the image path to '/media/images/picture.png' then this will work for all sub pages.

    The inital '/' slash tells the browser to always work from the root of the site and not from the relative page you're viewing.

    Cheers

    Chris

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Jan 05, 2011 @ 11:12
    Dennis Aaen
    0

    Hi OliverH,

    If I understand your question correctly. Your logo disappears when you are a little deep in the tree structure.

    I myself have had the same problem here a while ago. Yet it was not with images that were uploaded in the media library. But with a logo on a server located in a folder called img.

    The way I solved my problem was using relative path references. So in my case it was.

    <div id="logo">
      <a href="/"><img src="../img/logo.png" /></a>
    </div> 

    instead of simply

    <div id="logo">
      <a href="/"><img src="/img/logo.png" /></a>
    </div> 


    Hope it can help you further to find a solution.

    /Dennis Aaen

  • OliverH 2 posts 22 karma points
    Jan 05, 2011 @ 11:18
    OliverH
    0

    Hi Chris, it works:

    Thanks a lot for your speedy help.

    Oliver

  • Chris Koiak 700 posts 2626 karma points
    Jan 05, 2011 @ 11:19
    Chris Koiak
    0

    No problem, glad to help.

  • Sita 4 posts 24 karma points
    Mar 24, 2013 @ 18:07
    Sita
    0

    I am new to umbraco, I have to change some text and images in the site.  The problem is that I cannot find the Images folder for the images that are in the templates.  the folder is not in the Media section. I just want to change the header image but I cannot acces the folder in the server.  this is the info in the template:

        <form id="form1" runat="server">
          <div id="header">
              <center>
              <div id="header_centrado_loginlogo">
                <div id="header_logo">
                  <a href="/index"><img style="border:0px;" src="/Images/header_logo.png" /></a>
                </div>
                <div id="header_login">

    any help I can get would be greatly appreciated.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies