By rogerpfaff on
Hello out there,
I am developing on Drupal now for 6 months and I am experiencieng a strange problem I have never seen in this time. I tested and deployed a few sites so far and there was never a problem with theming these sites. But actually I tumble on theming a site because when I use graphics in the template the path to the graphic is not the path to the template under /site/sitename/images/image.jpg (I also tried without subfolders) but its just a relative path to the image.
If I install a downloaded theme from drupal.org it works perfectly. So what am I doing wrong?
thanks and greets
Roger
Comments
Where are your images
So where are the images you want to load located? In your theme folder or somewhere else?
thanks
for your reply, but I found the error. It was sitting between the screen and the chair. ;)
I mistakenly added the image to my template file but was not aware that in a template file the image must get a base path and a theme path with the appropriate drupal functions. Now I link the images as background images in the CSS and they are displayed as wished.
knowledge raised, case closed. :D
PS: the functions are base_path() and theme_path()