when in a module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
brownrl
Forum Members
Forum Members
Posts: 74
Joined: Thu Sep 23, 2004 11:06 am

when in a module

Post 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... ;)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: when in a module

Post 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...
humbleZack

Re: when in a module

Post 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
Post Reply

Return to “Developers Discussion”