Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [Andy] image problems: Edit Log

Here is the list of edits for this post
Re: [Andy] image problems
there are several threads for this issue, but it seems I´m too stupid for adding an image.

What I need to have:
I want to add an image to one of my many categories. Every category should have another image, but not every category should have an image.


I did the following:

1) I have managed to add a "column" in my "category-properties" table-editor with the following data:
- column name: image
- column type: CHAR
- column size: 255
- form display: image
-form type: file
- file save location: /home/au000040/www/home/pages/images/default
- file save method: HASHED

2) In one of my categories I added an image via the new box which helps me to add an image.
- this image is called "star1.gif"
- when I then go via FTP to my server, I can see that my image is in a "new" folder called: "1"
- which means: the path for this image is a different one than expected: /home/au000040/www/home/pages/images/default/1
- to my surprise, the image has got a different name now: its name has changed from "star1.gif" to "1-star1.gif"

3) From reading different threads here, I understand that this is a normal thing and that we can solve this with a so called "global".
If think a "global" is a code in the "global template"-section like for example <table border="0" width="745" cellpadding="0" cellspacing="0"> is the code for "body_table"

4) I understand that I have to create such a "global".
- what is the code for this global in order to get an image to my category ?
- where do I put this "global" ? Somewhere in between the HTML-code ?

5)
the standard code in the template "subcategory.html" is:

<%if Image%>
<td width=30 align=center valign=top>
<img src="<%build_images_url%>/default/<%image%>" border=0></td>
<%else%>
<td width=25>&nbsp;</td>
<%endif%>


do I have to alter this ?

6)
I understand that I have to do a "Build Changed" in the "Build menu" to make everything work.
Right ?



I have no idea of PERL. Sorry. PLEASE HELP !

Last edited by:

erichcyber: Jul 24, 2004, 8:35 PM

Edit Log: