So I have a menu where some of the menu items are dynamic category listings. Something like this within the left nav (for example):
Menu One
Category Two
- Dynamic Article 1
- Dynamic Article 2
- Dynamic Article 3
Menu Three
Category Four
- Dynamic Article 1
- Dynamic Article 2
- Dynamic Article 3
EDIT
I think my description of the menu isn't quite clear, so I'll expand here a bit.
Let's say I have a left nav that looks really snazzy and is organized like this:
- About Us
- Jack
- Joe
- Our Dog
- Success Stories
- Sammy in South Dakota
- Delilah in Delaware
- Arty from Arkansas
- ....
- Contact Us
- Recent Articles
- 9/4
- 9/2
- 8/30
- 8/27
- 8/25
- ...
And along the way it just made sense to turn Stories and Articles into their own category as they're updated frequently and the process of adding and removing menu items is too much maintenance. Let's also assume that in both the "Success Stories" and "Recent Articles" sections that I'd want the last 'x' articles, say 5.
If I just had one menu I could use Joomla's Recent News modules (which is similar to the "Category Listing" but will show in the menu area). But if you try to insert that it will list the articles either before or after your existing menu (for example, might be able to get it to do: About Us / Contact Us / Success Stories / Recent Articles).
I need it integrated within the menu structure, so that there is a mix of menu items that are static (one menu link that goes to one page) and dynamic (where the menu shows the last x articles from that category). That category listing needs to be called as a subroutine while the menu is being dynamically generated. Or a menu item (Success Stories) needs to be replaced by a category listing within the menu structure. Maybe a module position in place of a menu and then place the latest news there?
I found this article that said to build a plugin. This Joomla doc, though for 1.5, makes it seem that the latest news module will just plug into the menu - but that didn't work that way.
I've built super simple plugins and am just learning PHP and Joomla dev - how would I intercept the menu construction to plug in a category listing? Or if there's an "out of the box" way of doing it I'm all ears. If it is a plugin how would you intercept the menu?
My initial thought is to say if category = 15 then print out a module position of "category15." Something like this. No idea if I'm on the right track there.
As always, thank you!