I've been scratching my head over this for two days, it's really holding up my project and I cannot find any reason for the behavior.
I have a toplist that displays 50 links in each category. However, the toplist will not display any links that have been aliased to the folder. It's really strange because the files are in the category, they show up fine in the listing and looking at their catid is correct but they will not display in the toplist.
Example, there are 10 regular links in my test folder, the folder is a 2nd level deep folder and has ONE aliased link to make 11 total files, this toplist will display all 10 regular files but not the aliased file.
Here is the code.
<CONFIG>links,hits;votes,50,descending;descending,catid=[CATID] or parentids LIKE '%, [CATID], %'</CONFIG>
Apparently this forum is scraping and processing the the CATID code and replacing with the forum category number, so I'll change for clarity and wrap with brackets []..
In the templatefunctions is " $condition .= ' AND alias=0';"
If I take that out, the alias displays fine but now how to prevent the alias from displaying twice? There are now duplicate displays in the parent lists.. Duplicate checking ..
Got the same question by email a few days ago. 4.0.5 will have an extra toplist term where you can set whether the particular toplist should show aliases.
Comments on TopList Not Displaying Aliased Links
Member
Usergroup: Customer
Joined: Oct 27, 2006
Total Topics: 6
Total Comments: 25
I've been scratching my head over this for two days, it's really holding up my project and I cannot find any reason for the behavior.
I have a toplist that displays 50 links in each category. However, the toplist will not display any links that have been aliased to the folder. It's really strange because the files are in the category, they show up fine in the listing and looking at their catid is correct but they will not display in the toplist.
Example, there are 10 regular links in my test folder, the folder is a 2nd level deep folder and has ONE aliased link to make 11 total files, this toplist will display all 10 regular files but not the aliased file.
Here is the code.
Apparently this forum is scraping and processing the the CATID code and replacing with the forum category number, so I'll change for clarity and wrap with brackets []..
All help is much appreciated ..
Member
Usergroup: Customer
Joined: Oct 27, 2006
Total Topics: 6
Total Comments: 25
Ok, well I see why this is happening ..
In the templatefunctions is " $condition .= ' AND alias=0';"
If I take that out, the alias displays fine but now how to prevent the alias from displaying twice? There are now duplicate displays in the parent lists.. Duplicate checking ..
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Got the same question by email a few days ago. 4.0.5 will have an extra toplist term where you can set whether the particular toplist should show aliases.
Member
Usergroup: Customer
Joined: Oct 27, 2006
Total Topics: 6
Total Comments: 25
Will it prevent duplicate links in the toplist?