4
freetek:
To add submenus, you might explore the logic behind the main menu. You can read this logic in the file modules/system/blocks/system_blocks.php, lines 106-135. You'll see there that it's actually not that easy, because the logic is tied to the definition of a module (that's why in the xoops_version.php file you have a specific syntax to define the module's menu and submenus. But you can certainly try, exploring also the logic behind a recent post by chapi about highlighting menu options.
As to the showing of blocks tied to the showing of specific articles, I think that you can't do precisely that, because of the fact that blocks are linked in the database to one specific module, and the rules of display are tied to user groups, not to content items.
What you can do, however, is set some logic inside those articles so you show whatever you want inside the article. Check my module Soapbox (I just uploaded a fix, there's a recent post about it) and look in the article.php file. There I include the logic to show a list of articles pertinent to the article you're reading (the list excludes the actual article).
Of course, I might be mistaken. If anyone has an idea of how to accomplish the things mentioned here, I'd be happy to learn I'm mistaken. Wouldn't be the first nor the last time.
Cheers.