Webmastersite.net
Register Log In

total links in subcategory
to show at main

Comments on total links in subcategory

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Feb 03, 2008 - 6: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: 61
Total Comments: 7868
Paul
Posted Feb 04, 2008 - 3:55 PM:

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';
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Feb 07, 2008 - 9: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: 61
Total Comments: 7868
Paul
Posted Feb 09, 2008 - 12:27 AM:

Adding detection of that when adding links now.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Feb 13, 2008 - 5: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: 172
Total Comments: 462
peumus
Posted Feb 17, 2008 - 10: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: 61
Total Comments: 7868
Paul
Posted Feb 20, 2008 - 10: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: 172
Total Comments: 462
peumus
Posted Feb 28, 2008 - 8: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: 61
Total Comments: 7868
Paul
Posted Mar 05, 2008 - 3:26 AM:

Best post it in feature suggestions so I don't forget it.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.