Page 1 of 1

when in a module

Posted: Sun Aug 28, 2005 9:40 am
by brownrl
What is the best way to set the page title within module code?

What I would like to do is set the page title in the a function of the module so that there is something in the title bar or template coding.

When the user is going around a module using the moduleinterface.php the title and bulletemenu are no longer are updated correctly.

So every place that I have {title} or {bulletmenu} the template or page is not consistent.

Minor problem really but one that nags as time goes on... like me... ;)

Re: when in a module

Posted: Sun Aug 28, 2005 2:05 pm
by Ted
There really is no way to do this at the moment.  Unfortunately, it's not that easy to do.  Module processing happens after {title} and such are processed, plus you have issues of multiple modules.

I'll figure out something...

Re: when in a module

Posted: Fri Nov 11, 2005 8:29 pm
by humbleZack
The first thing that comes to my mind is to have your module add to the window.onload() function, so that it finds the tag (using getElementsByTagName), then copies the innerHTML to wherever you'd like to display it.  Not the best thing in the world, of course, but it should work fine.

Zack