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 ?
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 ?
Comments on total links in subcategory
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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} ?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Additional fields can be supported in the subcategories on main page area using the $subhtmlfields tweak: scripts.webmastersite.net/w...rticles/tweaksphp-359.html
In this case, $subhtml = 'numlinks,linkshere';
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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,
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Adding detection of that when adding links now.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
Please also consider decriment detection when links get expired/deleted/hidden
Thanks,
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
At what ver. can I expect this feature? Just checked 4.1.30 and it does not have it.
Thanks,
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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 ?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Best post it in feature suggestions so I don't forget it.