Hi,
I recently made a mod to put selected categories in an 'Alpha' bar across the top of the category page, but I'd like to enhance it by including ALL the links from these 'alpha' type categories into a 'Complete List' category as well.
Instead of making it a complicated manual process I'd like nph-build.cgi to check for a category named 'Complete List' and where it finds one, get ALL of the links from the 'Alphabar' sub-cats of the same parent.
As a visual example:
[ A | D | T ]
Complete List (xxx)
... if A has 10 links, D - 30, and T - 12, the Complete List category should have all of those totalling 52.
Any idea's on how I could go about this and what logic I could use such as WHERE statements, checking loops, etc. would be much appreciated ?
All the best
Shaun
I recently made a mod to put selected categories in an 'Alpha' bar across the top of the category page, but I'd like to enhance it by including ALL the links from these 'alpha' type categories into a 'Complete List' category as well.
Instead of making it a complicated manual process I'd like nph-build.cgi to check for a category named 'Complete List' and where it finds one, get ALL of the links from the 'Alphabar' sub-cats of the same parent.
As a visual example:
[ A | D | T ]
Complete List (xxx)
... if A has 10 links, D - 30, and T - 12, the Complete List category should have all of those totalling 52.
Any idea's on how I could go about this and what logic I could use such as WHERE statements, checking loops, etc. would be much appreciated ?
All the best
Shaun