[Neos] Event when Neos reloads content

Jan-Erik Revsbech janerik at moc.net
Mon Aug 26 09:26:08 CEST 2013



> ------------------------------------------------------------------------
>
> 	Christian Müller <mailto:christian.mueller at typo3.org>
> August 26, 2013 8:41 AM
>
>
> Hi Jan-Erik,
>
> Jan-Erik Revsbech wrote:
>> Hi all. I have a question I hope one of you awesome guys can helt me
>> with. On a new Neos site I'm working on, I have a need to trigger some
>> DOM manipulation via jQuery whenever the content is being reloaded by
>> Neos (ie. saving a property in the inspector panel). Don't ask why:(
>
> Why? ;) Well probably some JS init...
>
Correct:)
>>  From what I kan see with my very limited knowledge of the Neos backend,
>> an event is triggered via that.trigger('pageLoaded') in Application.js,
>> but I have no idea about how to catch that event anywhere. And I might
>> not even be on the right track here.
>
> That is correct. The problem is that this event "pageLoaded" is 
> triggered on an object that is purely internal and not accessible from 
> the outside. I think that has to change to allow exactly what you want 
> because that will be a common usecase with JS enriched websites.
>
Thats what I suspected, but my knowledge into Require.js and Ember was 
insufficient to verify it.
>>
>> So the question is: Is it possible to register a callback function or
>> otherwise "hook in" whenever the pagecontent is relaoded by Neos?
>
> So from what I see it is currently not possible but we should change 
> that.
Ok. I'll take a talk with Aske and talk about the best way to implement 
this, might be something I can help with.

Thanks for you quick answer.

/janerik


More information about the Neos mailing list