deelerdave
05-09-2009, 08:23 PM
I would like to implement a one page directory mod so that the entire directory (at least the top level categories) and the first N links in each category all display in a table on one page. I have been searching the mods available for a while but didn't find anything like this.
So would look like:
category1 link1 link2 link3
category2 link4 link5 link6 link7
category3 subcategory1 link9
and so on. I figure this should be quite simple.
I've been playing with the free version for a few hours to get my feet wet, but my PHP skills are microscopic. It looks like index.php either gets all the categories if it's displaying the main page, or it gets all the links in one category if it's displaying a category. and then calls main.tpl to output one or other page. I guess I need to iterate over all categories in index.php, fetch the links and subcats for that category and call a category.tpl or similar to display each category row?
Any help much appreciated.
Dave
So would look like:
category1 link1 link2 link3
category2 link4 link5 link6 link7
category3 subcategory1 link9
and so on. I figure this should be quite simple.
I've been playing with the free version for a few hours to get my feet wet, but my PHP skills are microscopic. It looks like index.php either gets all the categories if it's displaying the main page, or it gets all the links in one category if it's displaying a category. and then calls main.tpl to output one or other page. I guess I need to iterate over all categories in index.php, fetch the links and subcats for that category and call a category.tpl or similar to display each category row?
Any help much appreciated.
Dave