Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Listing Categories and Articles
Listing Categories and Articles
Listing Categories and Articles
Hi Stephen -
I realize this is a bit off topic for this forum, but I'm wondering if there is structure in jom_genius that can help or you have insights to appropriate J17 classes.
On a page that is a category (any style) display can the top level of the current category be accessed by a MMP module's PHP to then loop recursively through sub-categories and articles to create a menu-like nested <ul> list of links to the sub-categories and articles in that category?
Thoughts? Direction to head for someone with only moderate PHP-foo? All suggestions appreciated.
Duke
19-Sep-11 19:19:00
Re: Listing Categories and Articles
Hi Duke,
Yes, it's a little off-topic. You might be better looking for other extensions which can do hierarchical lists of articles, and see how they do it.
I see that in J1.6/1.7 there's a new class called JCategories which may give a good head start rather than trying to load stuff from the database directly. It seems to give programmatic access to all the nodes in a category tree, also via a class JCategoryNode. That's the direction I would be looking in.
Cheers,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Listing Categories and Articles
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7624
- Newest User:
- borger3298
- Members Online:
- 0
- Guests Online:
- 234
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked