Link variables are very powerful because they work on the wrapper. Specially useful are the link variables that return the category value as they work also deeply at link details.
Considering this I would like to suggest {LINKCATPARENTID} variable.
Returning the category were the links are, at the moment we do have:
LINKCATID: LINKCATNAME: These are returning the actual category but if we are in a sub-category they return sub-category value.
We can use LINKNAV: to extract the parent category but would be more direct to have {LINKCATPARENTID}
I'm getting concerned about the RAM issues of including extra functions like this in the classes. That memory ends up involved in every page load. Nonetheless, I believe
Comments on new 0
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
Link variables are very powerful because they work on the wrapper.
Specially useful are the link variables that return the category value as they work also deeply at link details.
Considering this I would like to suggest {LINKCATPARENTID} variable.
Returning the category were the links are, at the moment we do have:
LINKCATID:
LINKCATNAME:
These are returning the actual category but if we are in a sub-category they return sub-category value.
We can use LINKNAV: to extract the parent category but would be more direct to have {LINKCATPARENTID}
Thank you in advance.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I'm getting concerned about the RAM issues of including extra functions like this in the classes. That memory ends up involved in every page load. Nonetheless, I believe
is what you're looking for. Put it above function canremove() in classes/onelink.php. Will be in future versions.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Thank you,
I have inserted this function and it's returning me only a value of cero regardless of the parentcategory the links are in.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Fixed
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Thank you.
The new variable is working fine.