1
trspice
I need help with this simple module
  • 2008/5/21 4:41

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I have created this module for a page on my site and it works fine except for the lines in red. Can someone help with the proper coding to make the page title display?

This is the code for index.php in the module folder

include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
echo "
$xoops_pagetitle
";
include_once(XOOPS_ROOT_PATH."/uploads/genres.txt");
?>

include(XOOPS_ROOT_PATH."/footer.php");
?>
There's nothing but science....
The Reggae Album

2
Anonymous
Re: I need help with this simple module
  • 2008/5/21 12:05

  • Anonymous

  • Posts: 0

  • Since:


Hi,

Try this code:

include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoops_pagetitle = $xoopsModule->getVar('name');
echo "
$xoops_pagetitle
";
include_once(XOOPS_ROOT_PATH."/uploads/genres.txt");
include(XOOPS_ROOT_PATH."/footer.php");
?>

3
trspice
Re: I need help with this simple module
  • 2008/5/21 15:15

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Thanks mowaffak, that worked.
There's nothing but science....
The Reggae Album

Login

Who's Online

304 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 304


more...

Donat-O-Meter

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

Latest GitHub Commits