1
3lr0n
smarty variable for module name
  • 2009/3/22 17:24

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Hello, sure it will be a so easy answer that i couldnt find it in the forums.

Is there a smarty vble that shows the module name? not the dir name (<{$xoops_dirname}>, I need the name of the module that is set in the modules admin area (ej: newbb named forums).

ta in advance.
Spanish Overclocking Community xoops based site : http://www.overclocking.es

2
3lr0n
Re: smarty variable for module name
  • 2009/3/23 21:04

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


bump
Spanish Overclocking Community xoops based site : http://www.overclocking.es

3
trabis
Re: smarty variable for module name
  • 2009/3/23 21:12

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


No smarty, unless you want to hack XOOPS core class/theme.php

Better is not to hack, you can use php code inside theme or templates so do the following:
<{php}>if(is_object($GLOBALS['xoopsModule'])) echo $GLOBALS['xoopsModule']->getVar('name');<{/php}>


4
3lr0n
Re: smarty variable for module name
  • 2009/3/23 22:15

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


works perfect!

Thks
Spanish Overclocking Community xoops based site : http://www.overclocking.es

Login

Who's Online

323 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 323


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