Gossamer Forum
Home : Products : Links 2.0 : Customization :

Hop to dropdown

(Page 2 of 2)
> >
Quote Reply
Re: Hop to dropdown In reply to
Hi Guys !!!

Please, somebody can help me whith the threads above ??? Frown


Best regards,

marcoBR



Quote Reply
Re: Hop to dropdown In reply to
Ok Guys ... I made one change in the sub site_html_category_list posted by Eliot to list subcategories for only a determinate category, I simply changed the following line:

next unless ($_ =~ m,^([^/]*)$,);

to

next unless ($_ =~ /^Soccer/);

... ok this is working thanks, but the problem is that I have to make one sub site_html_category_list for each category and subcategories... :(

eg: I have a category named Soccer whith three subcategories

Soccer/Women
Soccer/Men
Soccer/Children

and more subcategories under Soccer/Children,

Soccer/Children/5_9
Soccer/Children/10_15

If I want to have a categoy select list for this subcategories I need to create a new sub site_html_category_list whith the following line to list only the subcategories under the Soccer/Children category:

next unless ($_ =~ /^Soccer/Children/);


Can you understand me ???

Are there any solution to automate this proccess ???

I thinked on create a category filed eg: show_drop to determine if the drop-down will be show or not for the category.

Any ideas ???


Best Regards,

marcoBR

Quote Reply
Re: [marcoBR] Hop to dropdown In reply to
This is exactly the mod I was looking for. One change I am trying to make though. Is there an easy way to change it so it won't display empty subcategories (ones with no links in them)?



Thanks in advance.

Charlie
> >