Webmastersite.net
Register Log In

Filter in toplist, conditional syntax

Title Filter in toplist, conditional syntax
Description How create this ?
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!

Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership befeleme
Views 705 views. Averaging 0 views per day.
Similar Topics
Submission Date Feb 25, 2006 - 5:06 AM