[Solved] ContentPostRender not available in 1.8 anymore?

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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

[Solved] ContentPostRender not available in 1.8 anymore?

Post 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?
Last edited by Jos on Sun Jul 04, 2010 3:04 pm, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: ContentPostRender not available in 1.8 anymore?

Post 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.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: ContentPostRender not available in 1.8 anymore?

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

Re: [Solved] ContentPostRender not available in 1.8 anymore?

Post by Ted »

Excellent.  I'm glad you found a good example.  I didn't have one in mind this morning to point you towards.
NaN

Re: [Solved] ContentPostRender not available in 1.8 anymore?

Post 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?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: [Solved] ContentPostRender not available in 1.8 anymore?

Post by Jos »

Nan: confirmed.

Turns out there was an example in the skeleton module also  :-[
NaN

Re: [Solved] ContentPostRender not available in 1.8 anymore?

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

Return to “Developers Discussion”