we would like to create a site portal like www.startpagina.nl so we have to make a toplist for each category on the main page.
The problem is that we have to create a lot of toplists that causes a lot of "server stress". A better way for this would be a toplist that creates a colomn for each category with the most popular links in it.
Something like this (but it doesn't work):
<!-- BEGIN CATSBODY --> <!-- BEGIN REGULAR --> here comes the category info <!-- END REGULAR -->
<!-- BEGIN TOPLIST 1 --> <CONFIG>links,hits,10,descending,catid = {CATID},0,1,0,0,0,0</CONFIG> here comes the links info <!-- END TOPLIST 1 -->
You have to put the toplist code within the scope of a category, which means before the <!-- END REGULAR -->. You also need a unique number for it, you can use {CATNUMBER} for that. This will create a huge server load though, surely. Pulling data from every category on one page isn't very practical.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Toplist for each category
Beginner
Usergroup: Customer
Joined: Oct 07, 2003
Total Topics: 4
Total Comments: 4
Hello,
we would like to create a site portal like www.startpagina.nl so we have to make a toplist for each category on the main page.
The problem is that we have to create a lot of toplists that causes a lot of "server stress". A better way for this would be a toplist that creates a colomn for each category with the most popular links in it.
Something like this (but it doesn't work):
<!-- BEGIN CATSBODY -->
<!-- BEGIN REGULAR -->
here comes the category info
<!-- END REGULAR -->
<!-- BEGIN TOPLIST 1 -->
<CONFIG>links,hits,10,descending,catid = {CATID},0,1,0,0,0,0</CONFIG>
here comes the links info
<!-- END TOPLIST 1 -->
<!-- END CATSBODY -->
Kind regards.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You have to put the toplist code within the scope of a category, which means before the <!-- END REGULAR -->. You also need a unique number for it, you can use {CATNUMBER} for that. This will create a huge server load though, surely. Pulling data from every category on one page isn't very practical.