<!-- BEGIN TOPLIST 2 --> <CONFIG>links,lastedit,3,descending</CONFIG> {LINKMYCUSTOM} <!-- END TOPLIST 2 -->
and I need display in this toplist only links with any inserted text in custom link field (name field : mycustom). In manual I find example for displayed only regular categories in toplist by use
<!-- BEGIN TOPLIST 2 -->CONFIG>links,lastedit,3,descending,mycustom,,</CONFIG> {LINKMYCUSTOM} <!-- END TOPLIST 2 -->
my toplist not works.
But I use this code:
<!-- BEGIN TOPLIST 2 --> <CONFIG>links,lastedit,3,descending</CONFIG> <IF {LINKMYCUSTOM}>{LINKMYCUSTOM}</IF> <!-- END TOPLIST 2 -->
toplist works o.k.!!
My questions are:
1. Is possible use conditional syntax in toplist without any difficulty? 2. Is any easy way for create my toplist with use similar code as manual? For example:
<!-- BEGIN TOPLIST 2 --> <CONFIG>links,lastedit,3,mycustom contains text,,</CONFIG> {LINKMYCUSTOM} <!-- END TOPLIST 2 -->
Comments on Filter in toplist, conditional syntax
Experienced
Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic
Total Topics: 48
Total Comments: 82
Hallo,
I have this toplist on main page:
and I need display in this toplist only links with any inserted text in custom link field (name field : mycustom). In manual I find example for displayed only regular categories in toplist by use
When I use "analogous" code with above
my toplist not works.
But I use this code:
toplist works o.k.!!
My questions are:
1. Is possible use conditional syntax in toplist without any difficulty?
2. Is any easy way for create my toplist with use similar code as manual?
For example:
and others.
Thank you for help!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Use a mysql condition the same as in phpmyadmin. mycustom != ''