2
I think some people might find this interesting. A little hack I'm halfway through doing.
I figured out how to modify the Sections module to do what I want. The main problem I had with this module initially is that it does not simply display articles as sub-menus and then load those articles onto the page.
I've figured out how to add the sub-menus, and how to get it to display the article directly by clicking on the submenu.
Its a complex process right now, but here it is. Still working on it so I'll be sure to update:
TO CHANGE THE SECTIONS MODULE:
1) add new menu options:
Goto modules/sections/xoops_version.php, edit this file.
Under //Menu, add
$modversion['sub'][1]['name'] = "The New Menu Item";
$modversion['sub'][1]['url'] = "url of the menu item";
Save this.
2) add the content that the menu option loads:
Log into the site as admin. Go to System Admin, then Modules.
Click on the Sections button to add new content.
If a section does not currently exist, add a new one.
Then create a new article with the same title as your menu option. Add your content also. Save.
If you need to edit any existing articles, scroll down the page to "Last 20 Articles". Click on Edit next to the one
you need to change.
3) link the menu option to the content page.
Go to the main page of the site. Click on Sections.
Click on the Section in the middle of the screen that you previously setup.
Click on the article you want to link to the menu option.
On the new page that loads, at the bottom copy the link under "The URL for this story is". Click on the link.
Goto modules/sections/xoops_version.php, edit this file.
Under //Menu, modify the menu option code you added earlier.
From the link you copied, only copy the end of the link beginning with index.php?op.....
Paste this into the section that says "url of the menu item"
For example:
$modversion['sub'][1]['name'] = "The New Menu Item";
$modversion['sub'][1]['url'] = "url of the menu item";
changes to:
$modversion['sub'][1]['name'] = "The New Menu Item";
$modversion['sub'][1]['url'] = "index.php?op=viewarticle&artid=2";
Now save this file.
4) review the changes:
Go to the main page of your site.
Click on Sections, then click on the sub-menu you created. It should display the article you created.