Page 1 of 1
[Solved] ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 12:28 pm
by Jos
In CMSms version 1.8 the function ContentPostRender seems to have disapeared from lib/classes/class.module.inc.php. It wasn't even marked as deprecated?!
Is there an alternative method one can use to let a module put something in the html-headsection of a page?
Re: ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 12:34 pm
by Ted
All the callbacks have been deprecated for a long time. 1.2 or something. There is a equivalent ContentPostRender event that you can use in it's place.
Re: ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 3:03 pm
by Jos
Thanks Ted.
I did see that some callbacks were deprecated, but didn't understand that all of them were.
I found an example with the TinyMCE module how it handles with the ContentPostRender event.
Re: [Solved] ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 5:04 pm
by Ted
Excellent. I'm glad you found a good example. I didn't have one in mind this morning to point you towards.
Re: [Solved] ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 8:05 pm
by NaN
Just a short question: Is the "new" method the "$this->AddEventHandler( 'Core', 'ContentPostRender', false );" in method.install.php and the module file "event.Core.ContentPostRender.php" (or the function DoEvent()) stuff?
Re: [Solved] ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 8:07 pm
by Jos
Nan: confirmed.
Turns out there was an example in the skeleton module also

Re: [Solved] ContentPostRender not available in 1.8 anymore?
Posted: Sun Jul 04, 2010 8:18 pm
by NaN
I'm glad to hear that.
I've done this from the beginning on since it was the way the skeleton module did it
