API
Version 7.x > API > CMSLoaderAttribute View modes: 
User avatar
Member
Member
Yehuda - 1/9/2014 3:59:01 PM
   
CMSLoaderAttribute
Hi,

I'm trying to implement a custom event handler.
I have the code, but seems like nothing is happening.
My break points never get hit, and I don't get any errors in error log.
I have break points in my Init() method and in the events I'm trying to handle.

Do I have to do anything besides putting my class in App_Code?

Thanks, Yehuda

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/9/2014 4:16:12 PM
   
RE:CMSLoaderAttribute
I've got some code here that shows how to properly implement it, take a look. It's talking about macros but you'd do the same setup for custom events.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/10/2014 2:29:45 AM
   
RE:CMSLoaderAttribute
Hi,

What is your exact code and how is the class registered?

Best regards,
Juraj Ondrus

User avatar
Member
Member
Yehuda - 1/11/2014 11:56:07 AM
   
RE:CMSLoaderAttribute
Thanks, I figured it out.
My problem was that my public class wasn't a partial of CMSModuleLoader.