total links in subcategory
to show at main
Version:
URL:
|
peumus
Forum Regular Usergroup: Customer Joined: Aug 09, 2004 Location: Chile Total Topics: 173 Total Posts: 462 |
Posted 02/03/08 - 4:20 AM:
I need to present the total links each subcategories have. This at main.tpl . At the moment we have as manual explains : {CATNUMLINKS} - Number of links in the category plus all its subcategories. {CATLINKSHERE} - Number of links in the category excluding subcategories. but none of them works for my purpose. Is it a way to present the number of links for each subcategory , but at main.tpl ? Do I need to request a {SUBCATNUMLINKS} ? |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 02/04/08 - 1:55 PM:
Additional fields can be supported in the subcategories on main page area using the $subhtmlfields tweak: http://scripts.webmastersite.net/w...rticles/tweaksphp-359.html In this case, $subhtml = 'numlinks,linkshere'; |
|
peumus
Forum Regular Usergroup: Customer Joined: Aug 09, 2004 Location: Chile Total Topics: 173 Total Posts: 462 |
Posted 02/07/08 - 7:17 PM:
Thanks, It works, but it need categories to be regenerated to update on new links added. I notice that by sating at tweaks.php : " $dontcachesubcats = true; " , the 'catnumlinks' variable works online. But as you say that by do not cacheing subcats we can have a server risk, so could it be possible to have an online value of 'catnumlinks' on subcats this working with cacheing subcats but without the need for regeneration ? Best Regards, |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 02/08/08 - 10:27 PM:
Adding detection of that when adding links now. |
|
peumus
Forum Regular Usergroup: Customer Joined: Aug 09, 2004 Location: Chile Total Topics: 173 Total Posts: 462 |
Posted 02/13/08 - 3:56 PM:
Paul, Please also consider decriment detection when links get expired/deleted/hidden Thanks, |
|
peumus
Forum Regular Usergroup: Customer Joined: Aug 09, 2004 Location: Chile Total Topics: 173 Total Posts: 462 |
Posted 02/17/08 - 8:58 PM:
Paul, At what ver. can I expect this feature? Just checked 4.1.30 and it does not have it. Thanks, |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 02/20/08 - 8:53 AM:
It was supposed to work. I see it only refreshes the subcats html of the category the link is submitted to, not the levels above. Fixing. |
|
peumus
Forum Regular Usergroup: Customer Joined: Aug 09, 2004 Location: Chile Total Topics: 173 Total Posts: 462 |
Posted 02/28/08 - 6:16 PM:
I now see it working perfect. I do have a doubt on how to deal with the hidden links. {CATNUMLINKS} counts the presented and hidden links, I believe this is correct, but I would like a way to count the hidden links in order to deduct them and to show the number of presented but not hidden links, so maybe a {CATNUMHIDDENLINKS} to deduct or a direct {CATNUMNOHIDDENLINKS}. What do you think ? |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 03/05/08 - 1:26 AM:
Best post it in feature suggestions so I don't forget it. |
Sorry, you don't have permission to post. Log in, or register if you haven't yet.

Print