2 Replies Latest reply: Jun 8, 2012 5:32 PM by Liam Dilley RSS

    My Images and styles are missing on some pages

    Liam Dilley CommunityMVP

      Important Notes:

      • The BC System has a great and simple way to know to read correct file locations for things like your CSS styles, Javascript files and your images.
      • The BC system has a number of elements that create folder like structures such as web app detail view, blogs, forums and eCommerce, if you do not follow the below your BC site will not be able to find the CSS, Javascript and image files because it will be looking for them in the current folder.

       

      With the two points above in mind the solution to this is really very easy. For every type of file you see in the below examples, all you need to do in your Templates is start these with a forward slash ( / ) , it is that easy!

       

      Stylesheet
      <link href="/css/style.css" rel="stylesheet">
      

       

      Favicon
      <link rel="shortcut icon" href="/ico/favicon.ico">
      

       

      Javascript File
      <script type="text/javascript" charset="utf-8" src="/js/scripts.js"></script>
      

       

      Image File
      <img src="/css/images/logo/logo.png" alt="logo" />