1
Shiva
Smarty tag for module
  • 2008/6/8 11:25

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Hello!

Is it possible to determine which module you are in from a XOOPS smarty tag?

Thanks in advance.

2
kris_fr
Re: Smarty tag for module
  • 2008/6/8 11:59

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

exemple in morphogenesis (theme template) :
<body id="<{$xoops_dirname}>" class="<{$xoops_langcode}>">


@++

3
Shiva
Re: Smarty tag for module
  • 2008/6/8 12:02

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Thank you very much - very handy to know!!!

4
Shiva
Re: Smarty tag for module
  • 2008/6/8 12:10

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


One more thing, and I know I am getting hopeful with this one. But is there a way of determining which module a block belongs to (when for example looping through the blocks theme_blockright.html)?

5
Shiva
Re: Smarty tag for module
  • 2008/6/8 12:14

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


I have sussed it out myself - it is possible !! As follows:
<{$block.module}>

Login

Who's Online

200 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 200


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