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

yahoo subcats sorting question!

Quote Reply
yahoo subcats sorting question!
hi everyone,

i would like to know how i can get the Yahoo subcats plugin to sort the subcategories that it lists in alphabetical order. right now i'm not sure how it sorts them, but there doesn't seem to be a pattern.

thanks.

david
Quote Reply
Re: [davenet] yahoo subcats sorting question! In reply to
Try adding:

$table->select_options('ORDER BY Full_Name');

before:

my $sth=$table->select({'FatherID' => $catid},['Full_Name','Name']);

to the YahooSubcats.pm file.

I just woke up, so won't vouch for it :)

But, I never noticed that, so this will be a feature (selectable) I'll add to my modified version when I have a moment.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.

Last edited by:

pugdog: May 5, 2005, 5:20 PM
Quote Reply
Re: [pugdog] yahoo subcats sorting question! In reply to
hi pugdog,

i did as you suggested and got this error when building...

GT::Plugins (25436): Error running plugin PRE hook: Plugins::YahooSubcats::create_subcats. Reason: Bad name after FatherID' at /home/ruralnorthwest.com/cgi-bin/admin/Plugins/YahooSubcats.pm line 31.
Compilation failed in require at /home/ruralnorthwest.com/cgi-bin/admin/GT/Plugins.pm line 184.
at nph-build.cgi line 76.


any other ideas?

david
Quote Reply
Re: [davenet] yahoo subcats sorting question! In reply to
Hi,

Theres a missing '

$table->select_options('ORDER BY Full_Name');
Quote Reply
Re: [RedRum] yahoo subcats sorting question! In reply to
thanks RedRum, that was easy... Wink

David