Webmastersite.net
Register Log In

category image
image to represent the category

Comments on category image

trued
Experienced

Usergroup: Customer
Joined: Oct 10, 2003

Total Topics: 19
Total Comments: 69
trued
Posted Jul 28, 2005 - 12:28 PM:

How do I add an image to represent the category instead of the text for the cat name?

thanks
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 28, 2005 - 6:19 PM:

See the custom file attachment fields manual entry.
sabbat
Member

Usergroup: Customer
Joined: Sep 15, 2004

Total Topics: 4
Total Comments: 14
sabbat
Posted Aug 08, 2005 - 9:56 AM:

Hi... I think i want the same

I have a top-list with the last links of my directory and I want to display a imagen (icon) that represent the category of each links.

I read the "custom file attachment fields" manual but I don´t meet the way to do it.sad
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 08, 2005 - 4:28 PM:

You're not being very specific about what regarding your custom category file field isn't working.
sabbat
Member

Usergroup: Customer
Joined: Sep 15, 2004

Total Topics: 4
Total Comments: 14
sabbat
Posted Aug 08, 2005 - 8:14 PM:

My problem is that i don´t know where charge the icons of each category and how call it. I read the manual and I try to crate a customfield (categoryattachimg) but I can´t progress.

instead of "{LINKNAV[trim]}" i want show a image

Sorry but i´m newbie in this script and my inglish isn´t enought good.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 09, 2005 - 1:15 PM:

If your templates were chmoded, the code to upload should already be in your templates. So go to edit a category, upload the file. Then use this where you want it shown:

<img src="download.php?catid={CATID}&field=categoryattachimg">


Or possibly {LINKCATID} if only link template vars are available in the template at hand, though typically category template vars work where link ones do.
sabbat
Member

Usergroup: Customer
Joined: Sep 15, 2004

Total Topics: 4
Total Comments: 14
sabbat
Posted Aug 09, 2005 - 10:34 PM:

thank you. Now I understand it


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 11, 2005 - 12:34 AM:

Note that if some categories have an image and others not, you'll probably want to use a template conditional like
<IF {CATATTACHIMGFILENAME}>
<img src="download.php?catid={CATID}&field=categoryattachimg">
<OTHERWISE>
{LINKNAV[trim]}
</IF>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.