1
I am trying to wrap HTML in a XOOPS module as discussed in XOOPS for Dummies.
I have two subdirectories I want to show in the menu when the parent directory is opened.
The files are called Cooking.php and Homeschool.php and they are located at "root/modules/Parent_Spot/Cooking.php" and "root/modules/Parent_Spot/Homeschool.php". Parent_Spot is the name of the module and the name of the directory in root/modules.
Everything shows up fine in the main menu, and Parent_Spot opens fine, and when it does, it shows "Cooking Articles" and "Cooking Articles" like I want it too, but when I click on either of those entries, I get a 404 error.
Here is the code for the subdirectories from the Xoops_Version.php file:
------
// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;//0 to remove from main menu
$modversion['sub'][1]['name'] = "Cooking Articles";//define in language/english/global.php
$modversion['sub'][1]['url'] = "../modules/Parent_Spot/Cooking.php";
$modversion['sub'][2]['name'] = "Homeschool Articles";//define in language/english/global.php
$modversion['sub'][2]['url'] = "Homeschool.php";
------
Please help, what am I missing?
Xoops for Dummies says something about defining, but I have no clue what that means.
Thanks!
ChLockett