Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Global for using Yahoo subcats

Quote Reply
Global for using Yahoo subcats
Hello,



I am using the Yahoo plugin. I would like a global that would return the description of the category being viewed. When I use <%Description%> I get "SUB1" and then my description. I am using both SUB 1 and a category description for every category, so when I use the <%Description%> of a category page it looks real strange.

What would it take to call the description (<%Description%>) and strip out a 'SUB1' if found?
Quote Reply
Re: [nt6] Global for using Yahoo subcats In reply to
Check out http://pugdocs.com or http://bodyart.com

Is that what you are looking for?

I'm pretty sure I released that code change to the forums here about a year ago.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Global for using Yahoo subcats In reply to
Hi Pugdog,

I found this:
http://gossamer-threads.com/perl/gforum/gforum.cgi?post=175356;search_string=SUB1;guest=2990399&t=search_engine#175356

But that is not what I want. I would like the Yahoo plugin to work "normally". But when I use the <%description%> tag on a category.html page,I see SUB1 and the text description. That would look better if the "SUB1 got chopped off on category.html. Do I make any sense?

Any ideas?
Quote Reply
Re: [nt6] Global for using Yahoo subcats In reply to
Just use two tags.

I use <%long_desc%> on my category pages.

From what I remember, the basic yahoo subcats program didn't work if you put anything but SUB1 or SUB0 in the Description field.

From the SqlMon or MySQLMan I copied the Description field to the long_desc field, then replaced SUB0 and SUB1 with an empty string, effectively removing them, and changed category.html to show <%long_desc%> instead of description.

If you don't want to maintain two sets of descriptions, you can modify the home.html to show <%description%><BR><%long_desc%> and cut everything but SUB0 or SUB1 out of description.

Alternatively, you can create a global, that takes the description tag and chops off the SUB1/SUB0 and call it from the category page.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Global for using Yahoo subcats In reply to
Thank you. It sounds like a good way. I will try now.