1
doktorrr
addresses module - how can I add every subcategories on top page?
  • 2007/2/20 14:58

  • doktorrr

  • Just popping in

  • Posts: 3

  • Since: 2007/2/6 2


How can I add every subcategories(not some 5-6 like on default)on top page in addresses module?Here is link to my site.my site
It is right on top page start of:

Poslovni imenik istočne Hercegovine (64)
Autoprevoznici, Građevinarstvo, Knjigovodstvo, Mediji, Metalna industrija, Poljoprivreda...

2
zyspec
Re: addresses module - how can I add every subcategories on top page?
  • 2007/2/20 15:26

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I'm assuming you're using Addresses 1.7...

The easiest way to show all subcategories on the top page (instead of just the first 5) is to comment out line 59 in index.php. Currently it's:
$chcount++;
change it to:
// $chcount++;


This just prevents the loop counter from being incremented so that all subcategories are shown.

Alternative approach: If you just want to increase the number of subcategories shown, without including all of them, change the '5' in line 50 to the number of subcategories that you want to show. For example:
if ($chcount 10) {
will show 10 subcategories instead of 5. Don't comment out line 59 if you use this approach.

3
doktorrr
Re: addresses module - how can I add every subcategories on top page?
  • 2007/2/21 14:09

  • doktorrr

  • Just popping in

  • Posts: 3

  • Since: 2007/2/6 2


Excellent,thanks!!!

Login

Who's Online

427 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 427


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits