I have added a field {CATPHOTOATTACH}. I have this within my other sites and it has always worked fine. However, I can't seem to attach an image on this site.
I edit a category, go to the field and browse, select the image and then save changes. Only it doesn't attach the image.
Paul wrote: Best to always keep field names lowercase, a mixed case field could be problematic. I believe it automatically lowercases when you add it anyway.
OOPS! my typo! thanks for spotting. That's the trouble with being a touch typist.
Comments on new file attach field for cats
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
I have added a field {CATPHOTOATTACH}. I have this within my other sites and it has always worked fine. However, I can't seem to attach an image on this site.
I edit a category, go to the field and browse, select the image and then save changes. Only it doesn't attach the image.
I have in my customcat.tpl....
<input type="file" name="Photoattach" ><br >
{CATPHOTOATTACHTITLE} ({CATPHOTOATTACHNAME}) <br >
<input type="checkbox" name="photoattachdelete" value="1"> Delete Photo
The image does not show in the cat and when I go back into edit {CATPHOTOATTACHTITLE} and ({CATPHOTOATTACHNAME}) are both empty.
No error messages are given and it looks as thought it saves correctly.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Best to always keep field names lowercase, a mixed case field could be problematic. I believe it automatically lowercases when you add it anyway.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Best to always keep field names lowercase, a mixed case field could be problematic. I believe it automatically lowercases when you add it anyway.
OOPS! my typo! thanks for spotting. That's the trouble with being a touch typist.
It has now attached ok, but is not displaying (http://freewebbargains.com/retailers/majestic-wine/), instead I just get: 120x60_logo2e8e.wsn[,]120x60_logo.gif[,]0[,]120[,]60
I currently have:
<IF {CATPHOTOATTACH}>{CATPHOTOATTACH}<br ><br ></IF>
but also tried:
<IF {CATPHOTOATTACHBOOL}>{CATPHOTOATTACH}<br ><br ></IF>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
{CATPHOTOATTACH} isn't supposed to display anything meaningful, see the documentation: scripts.webmastersite.net/w...chmentspan-fields-161.html . You probably want
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
{CATPHOTOATTACH} isn't supposed to display anything meaningful, see the documentation: http://scripts.webmastersite.net/wsnlinks/wsnmanu... . You probably want
Of course! Sorry Paul, I really am having a "blonde" week [sigh]