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?
[Solved] ContentPostRender not available in 1.8 anymore?
[Solved] ContentPostRender not available in 1.8 anymore?
Last edited by Jos on Sun Jul 04, 2010 3:04 pm, edited 1 time in total.
Re: ContentPostRender not available in 1.8 anymore?
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?
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.
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?
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?
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?
Nan: confirmed.
Turns out there was an example in the skeleton module also
Turns out there was an example in the skeleton module also

Re: [Solved] ContentPostRender not available in 1.8 anymore?
I'm glad to hear that.
I've done this from the beginning on since it was the way the skeleton module did it
I've done this from the beginning on since it was the way the skeleton module did it
