Gossamer Forum
Home : Products : Links 2.0 : Customization :

Multiple category listing templates.

Quote Reply
Multiple category listing templates.
Hi,
Is it possible to have two different types of category listings. So on the mainpage they are in a single column but in the sub categories they are split across two columns. I couldn't find a mod so I thought I might aswell ask here!

Cheers
Neil

Quote Reply
Re: Multiple category listing templates. In reply to
uh, its in the resource center...

maybe not...

In site_html_templates copy your,

site_html_print_cat routine and name it site_html_print_subcat

then in nph-build change this line


# Store all the category html info in $category.
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_cat (@{$subcategories{$cat}});


to:



# Store all the category html info in $category.
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_subcat (@{$subcategories{$cat}});


I believe thats it. You can then change site_html_print_subcat to look however you want for the sub-categories, and site_html_print_cat to look however you want for the main page.


- Jonathan
http://www.magicdirectory.com/
Quote Reply
Re: Multiple category listing templates. In reply to
Thanks a lot!
Worked a treat!!

Neil