I would like to make a toplist with a specific category. Show latest 5 links in Category. Here is the toplist generated. How do I add the catid? For example - catid = 1.
<!-- BEGIN TOPLIST 20202 --> <CONFIG>links[,]catid;lastedit[,]5[,]descending[,][,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,][,][,][,]</CONFIG> <a href="{LINKDETAILSURL}">{LINKTITLE}</a> - {LINKDESCRIPTION}<br /> <!-- END TOPLIST 20202 -->
Using the toplist generator at Admin -> Themes -> Toplist Generator, when it asks for a filtering condition, use catid = 1
Alternatively, the condition is the 5th term in the config line so your toplist above would become <!-- BEGIN TOPLIST 20202 --> <CONFIG>links[,]catid;lastedit[,]5[,]descending[,]catid=1[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,][,][,][,]</CONFIG> <a href="{LINKDETAILSURL}">{LINKTITLE}</a> - {LINKDESCRIPTION}<br /> <!-- END TOPLIST 20202 -->
If you want the category id number to the the category currently being viewed -- for a toplist that displays on category pages -- you can replace 1 with {THISCATID}.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Specify CatID in toplist
Member
Usergroup: Customer
Joined: Nov 11, 2011
Total Topics: 17
Total Comments: 27
Posted Apr 26, 2017 - 8:50 AM:
I would like to make a toplist with a specific category. Show latest 5 links in Category. Here is the toplist generated. How do I add the catid? For example - catid = 1.
<!-- BEGIN TOPLIST 20202 -->
<CONFIG>links[,]catid;lastedit[,]5[,]descending[,][,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,][,][,][,]</CONFIG>
<a href="{LINKDETAILSURL}">{LINKTITLE}</a> - {LINKDESCRIPTION}<br />
<!-- END TOPLIST 20202 -->
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Using the toplist generator at Admin -> Themes -> Toplist Generator, when it asks for a filtering condition, use catid = 1
Alternatively, the condition is the 5th term in the config line so your toplist above would become
<!-- BEGIN TOPLIST 20202 -->
<CONFIG>links[,]catid;lastedit[,]5[,]descending[,]catid=1[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,][,][,][,]</CONFIG>
<a href="{LINKDETAILSURL}">{LINKTITLE}</a> - {LINKDESCRIPTION}<br />
<!-- END TOPLIST 20202 -->
If you want the category id number to the the category currently being viewed -- for a toplist that displays on category pages -- you can replace 1 with {THISCATID}.