PDA

View Full Version : Dynamic number of category columns


Tim_Myth
10-28-2005, 11:14 PM
Content visible to registered users only.


This should be placed in your main.tpl file. Unless you've modified the directory a bunch, you should be able to simply replace the entire table generation portion of the file.

This will set it up so each column has 10 categories. This will get quite crowded if you have 50 or 60 categories, so set the number accordingly! You can change the number of categories per column in the last if statement. For example, this will give you 20 categories per column:
Content visible to registered users only.

Needless to say, if you have fewer than 10 categories, only one column will be displayed.