Skip navigation
Liam Dilley 3,994 posts
Feb 28, 2012
Currently Being Moderated

My Images and styles are missing on some pages

Mar 23, 2012 7:02 PM

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" />
 
Replies
  • Currently Being Moderated
    Jun 8, 2012 4:15 PM   in reply to Liam Dilley

    What about non-template pages? We do alot of beta-testing and any page that not part of the template system can not read stylesheets even if I use absolute URLs. Why is that?

     

    Teejay

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)