1
WarDick
Sub Menus
  • 2003/12/14 15:40

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Is there any way to tell which module has made the call to theme.html. I would like to make sub menu's based on this variable.

2
chapi
Re: Sub Menus
  • 2003/12/14 16:41

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


My hack to get a variable for the current module looks as following:

I added this snippet to the header.php

Quote:

if ( is_object($xoopsModule) ) {
$xoopsTpl->assign('xoops_moduledir', $xoopsModule->getVar('dirname')); }
else {
// whatever your want
}


In my theme.html I used

Quote:

<{$xoops_moduledir}>


to display the directory name of the current module.

3
WarDick
Re: Sub Menus
  • 2003/12/14 17:56

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Still need help with syntax of if statement in theme.html.

4
hsalazar
Re: Sub Menus
  • 2003/12/15 1:58

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


WarDick:

Please explain in a little more detail what is it that you want to do. For theme.html is one thing, and the main menu (which is the place to put submenu options) is another. If you explain a bit more, we'll be able to provide a better answer.

Cheers.

5
WarDick
Re: Sub Menus
  • 2003/12/17 7:56

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


What I'm really after is a dynamic horizontal menu.

Login

Who's Online

158 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

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

Latest GitHub Commits