Ah
Cant code a quick one but have realsied the (obvious) quick win .
Attached screenshot of K2 content module lets you see the setup for rendering a list of articles from a category. The crucial points are:
1. Main parent link must exist and be a K2 category link - thi smodule needs to be set to display on this link
2. Retreive items settings will append the itemid of the parent (main menu link) to each article url
3. This really only works for one category. Sub category items can be shown but they are rendered in the same unordered list block, ie without the heirarchy
4. Active highlight of current item not possible.
I can see two potential ways forward:
One is to create a K2 content category menu item let its params dictate the layout and then then split this with a module.
Or second option would be to just create module that could split a K2 category into a menu as long as there is a parent menu item id. Issue of CSS active highlight still needs dealing with though.
Simple enhancements I'd like to make would be in getting an active css highlight for the one category solution that seems currently available and then work on the sub cat rendering.
Not quite the quick code solution either of us was hoping for!
Guy Borghouts said:Hey Alan, that would be great :-) You're right, one would only use this mod when your category items would follow the intended site structure. My way of setting up sites is very much category based. Normally I'd only create main menu items (the main categories) and from there use the com_content category listing or the K2 category listing in the content area. But users liked the idea of the submenu on the left of the content to jump to other items in the category. Building and maintaing a site with a few categories: it's fine to use a couple of mods for those submenu's. But with larger sites, many more people maintaining it, it's practically begging for failures in the modules-area. So me and my editors.. we're lazy ;-) One mod to do the category listing for all categories would erase the need for manually adding extra mods or submenus.
I wrote to Bob Broughton who wrote the ThisCategory mod for normal Joomla use, but he hasn't committed himself to converting it to K2. I attached it, maybe it gives you some hints :-)
Cheers,
Guy