1
chlockett
Please help me fix a code in a submenu
  • 2005/11/4 19:17

  • chlockett

  • Just popping in

  • Posts: 29

  • Since: 2005/9/10


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

Login

Who's Online

224 user(s) are online (184 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits