No images are showing in the images drop-down

About the template and stylesheet - and changing the menu
Post Reply
jackyboy
Posts: 21
Joined: Thu Jun 19, 2008 5:09 am

No images are showing in the images drop-down

Post by jackyboy » Sat Nov 08, 2008 5:14 pm

I have a template that I am editing from DotcomWebDesign. I uploaded an image to replace the current header image, but the images drop-down list shows "There are no images in ./images"

I used the IMAGES link, browsed and uploaded the images in 3 different formats. None show. I ftped them, too. Still none show.

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: No images are showing in the images drop-down

Post by Tata » Sat Nov 08, 2008 6:07 pm

Images used in template are shown in templates/your_template/images. This folder is not viewed by admin function IMAGES. Also the images used in template can't be uploaded by this function. They can only be uploaded by FTP. By IMAGES function are uploaded only the images used on pages.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

jackyboy
Posts: 21
Joined: Thu Jun 19, 2008 5:09 am

Re: No images are showing in the images drop-down

Post by jackyboy » Sat Nov 08, 2008 7:59 pm

Thank you. I would like to rename the header image file if possilble for seo purposes. Can you tell me what I would need to change, other than the name of the image? I cannot seem to find a php or css selector file that calls that image.

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: No images are showing in the images drop-down

Post by Tata » Sat Nov 08, 2008 9:46 pm

Standardly the file is not defined in stylesheet.css. It is simply called in template.htm by something like:

Code: Select all

style="background-image: url(<?php echo $pth['folder']['templateimages']?>top.jpg);"
and this style may be used in a table or in a cell.
You may however define an id in the stylesheet.css and then use only this id in your template instead of the style. E.g.
In stylesheet.css:

Code: Select all

#top_banner{
/*top image*/
background:url(../images/top.jpg);
/*dimensions of top image*/
width:1024px; 
height:80px;
}
in template.htm:

Code: Select all

<table width="1024" height="80" align="center" border="0" id="top_banner">
<tr>
<td><?php echo sitename();?></td>
</tr>
</table>
The name of the image is not important at all IMHO.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply