<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
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...?
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 -->
<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.
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 -->
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.
Comments on what's wrong with this toplist:
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Probably means you have another toplist #5.
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
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...?
Member
Usergroup: Customer
Joined: Dec 01, 2007
Total Topics: 12
Total Comments: 24
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?
Member
Usergroup: Customer
Joined: Dec 01, 2007
Total Topics: 12
Total Comments: 24
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 -->
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
You have {LINKCATID} instead of {CATID}
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
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.
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
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 -->
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
{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.
Member
Usergroup: Customer
Joined: Dec 01, 2007
Total Topics: 12
Total Comments: 24
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Where exactly are you putting it? Indications suggest a repeating area.
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
I know this doesn't look much different but try it...
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Please see post #9 instead of post #12. Toplist numbers over 100 aren't allowed.