Webmastersite.net
Register Log In

Specify CatID in toplist
I would like to make a toplist with a specific category.

Comments on Specify CatID in toplist

kevinsan
Member

Usergroup: Customer
Joined: Nov 11, 2011

Total Topics: 17
Total Comments: 27
Specify CatID in toplist
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 -->
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 28, 2017 - 1:31 AM:

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}.
Search thread for
Download thread as
  • 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.