Message Text |
Hallo,
I have this toplist on main page:
<!-- 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
<CONFIG>categories,time,5,descending,type='regular',,</CONFIG> When I use "analogous" code with above
<!-- 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 --> and others.
Thank you for help!
|