what's wrong with this toplist:
Version: 3.3.6
URL:
|
capitaine
Forum Regular Usergroup: Customer Joined: Aug 05, 2005 Total Topics: 94 Total Posts: 273 |
Posted 02/16/06 - 3:49 PM:
what's wrong with this toplist: <table> <!-- BEGIN TOPLIST 5 --> <CONFIG>categories,name,15,ascending,parent={CATID},,3,0,0,0,0</CONFIG> <td> {CATSUBCATS} </td> <!-- END TOPLIST 5 --> </table> I'm trying to list all the subcategories under a parent category.... thought the above was the way to do it...? I've put it in displaylinks.tpl but it outputs stuff like this: categories,name,15,ascending,parent=79,,3,0,0,0,0 categories,name,15,ascending,parent=2042,,3,0,0,0,0 categories,name,15,ascending,parent=2043,,3,0,0,0,0 categories,name,15,ascending,parent=2044,,3,0,0,0,0 categories,name,15,ascending,parent=2045,,3,0,0,0,0 categories,name,15,ascending,parent=2046,,3,0,0,0,0 Truth don die |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 02/19/06 - 4:55 PM:
Probably means you have another toplist #5. |
|
capitaine
Forum Regular Usergroup: Customer Joined: Aug 05, 2005 Total Topics: 94 Total Posts: 273 |
Posted 02/20/06 - 3:49 PM:
I don't. I changed it to #15 and it still outputted the same... I think there's something wrong with how I've created it.... would {CATSUBCATS} output a list of all the subcats...? Truth don die |
|
jsfent
Member Usergroup: Customer Joined: Dec 01, 2007 Total Topics: 12 Total Posts: 22 |
Posted 08/18/08 - 7:18 PM:
i'm getting a similar error. and i'm sure it's not the toplist numbering that's the problem. what's making the config parameters show up in the list? |
|
jsfent
Member Usergroup: Customer Joined: Dec 01, 2007 Total Topics: 12 Total Posts: 22 |
Posted 08/18/08 - 7:21 PM:
My output looks like this. The titles and links come out correctly, but the config parameters are getting written as well. Does anyone know what's causing this? links,time,5,descending,catid=24,,,0,0,0,0,0,0 Uni teasy - Unit Conversion and Dictionary links,time,5,descending,catid=24,,,0,0,0,0,0,0 Nobel prize links,time,5,descending,catid=24,,,0,0,0,0,0,0 Scien ce and Engineering Encyclopedia This is what my toplist code looks like (not sure if it will print out correctly here): <!-- BEGIN TOPLIST 32 --> <CONFIG>links,time,5,descending,catid={LINKCATID},,,0,0,0,0,0,0</CONFIG> <div class="linktoplist"><a href="http://www.elementlist.com/lnx/link.php?id={LINKID}" target="_blank">{LINKTITLE}</a></div> <!-- END TOPLIST 32 --> |
|
babrees
Expert Usergroup: Customer Joined: Aug 19, 2005 Location: England Total Topics: 392 Total Posts: 1287 |
Posted 08/18/08 - 9:49 PM:
You have {LINKCATID} instead of {CATID} |
|
jayweb
Forum Regular Usergroup: Customer Joined: Nov 27, 2006 Total Topics: 131 Total Posts: 384 |
Posted 08/19/08 - 2:10 AM:
Try this... only a slight change... <table> <!-- BEGIN TOPLIST 5 --> <CONFIG>categories,name,15,ascending,parent="{CATI D}",,3,0,0,0,0</CONFIG> <td> {CATNAME} </td> <!-- END TOPLIST 5 --> </table> I put " " around {CATID} to make parent="{CATID}" And because you are using parent="{CATID}" you do not use {CATSUBCATS}, you simply use {CATNAME} because you have already specified that that you want to display the child categories. |
|
jayweb
Forum Regular Usergroup: Customer Joined: Nov 27, 2006 Total Topics: 131 Total Posts: 384 |
Posted 08/19/08 - 2:16 AM:
jsfent wrote: My output looks like this. The titles and links come out correctly, but the config parameters are getting written as well. Does anyone know what's causing this? links,time,5,descending,catid=24,,,0,0,0,0,0,0 Uni teasy - Unit Conversion and Dictionary links,time,5,descending,catid=24,,,0,0,0,0,0,0 Nobel prize links,time,5,descending,catid=24,,,0,0,0,0,0,0 Scien ce and Engineering Encyclopedia This is what my toplist code looks like (not sure if it will print out correctly here): <!-- BEGIN TOPLIST 32 --> <CONFIG>links,time,5,descending,catid={LINKCATID},,,0,0,0,0,0,0</CONFIG> <div class="linktoplist"><a href="http://www.elementlist.com/lnx/link.php?id={LINKID}" target="_blank">{LINKTITLE}</a></div> <!-- END TOPLIST 32 --> If this is going in your displaylinks.tpl, use <!-- BEGIN TOPLIST 32 --> <CONFIG>links,time,5,descending,catid="{CATID}",,,0,0,0,0,0,0</CONFIG> <div class="linktoplist"><a href="http://www.elementlist.com/lnx/link.php?id={LINKID}" target="_blank">{LINKTITLE}</a></div> <!-- END TOPLIST 32 --> If it is going in your details.tpl, use <!-- BEGIN TOPLIST 32 --> <CONFIG>links,time,5,descending,catid="{LINKCATID}",,,0,0,0,0,0,0</CONFIG> <div class="linktoplist"><a href="http://www.elementlist.com/lnx/link.php?id={LINKID}" target="_blank">{LINKTITLE}</a></div> <!-- END TOPLIST 32 --> |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 08/19/08 - 5:11 AM:
{LINKCATID} is fine. It looks like you've placed this toplist in a repeating area. Repeating toplists weren't handled automatically in the 4.1 series, only in 5.0. In 4.1, you can try to make it work by using {LINKNUMBER} as the toplist numbers -- this will require you have no other toplists on the page that conflict with whatever {LINKNUMBER}s may ever be involved. |
|
jsfent
Member Usergroup: Customer Joined: Dec 01, 2007 Total Topics: 12 Total Posts: 22 |
Posted 08/19/08 - 7:46 PM:
Yes, I'm trying to use this in a details/comments page to list the newest and most popular posts for the category that the details page belongs in. If I take the catid={LINKCATID} out completely, the toplist works in the details page. I tried using double quotes around {LINKCATID} and got the same error. It seems like there's some trick that I'm missing. |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 08/21/08 - 12:07 AM:
Where exactly are you putting it? Indications suggest a repeating area. |
|
jayweb
Forum Regular Usergroup: Customer Joined: Nov 27, 2006 Total Topics: 131 Total Posts: 384 |
Posted 08/21/08 - 2:35 AM:
I know this doesn't look much different but try it... <!-- BEGIN TOPLIST 11{LINKID} -->If it doesn't work then it is the place you are putting it rather than the toplist itself. Do you have any toplists in your wrapper? Edited by jayweb on 08/21/08 - 2:40 AM |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 08/22/08 - 11:53 AM:
Please see post #9 instead of post #12. Toplist numbers over 100 aren't allowed. |
|
||
This thread is closed, so you cannot post a reply.

Print