Forums / Developer / How to call a module from template?

How to call a module from template?

Author Message

Nicklas Lundgren

Wednesday 19 November 2003 11:28:22 am

Hi,
I have just finished my first db-driven module.
It works fine calling it with url from the browser.

But now I want to show the result of the module as part of a more complex design.
Thus, I need to call the module from for example pagelayout.tpl.

How would I accomplish this, if at all possible?

Any suggestions greatly appreciated!

Regards,
Nicklas Lundgren

Eirik Alfstad Johansen

Friday 21 November 2003 2:52:25 am

Hi Nicklas,

Not sure if I understand your question, but have you tried passing the output of your module to the variable $Result['content']? This should make it available in the template variable $module.content.

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/