onModule Created actions?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/8/2011 10:30:09 AM
Gravatar
Total Posts 76

onModule Created actions?

I was looking around for a place to put actions that would happen when a user creates a module.

Example:

User creates a new blog on page.

After creating the module ( getting the ids ), we go out an reserve the friendly rss urls, and other friendly urls.

 

I have been looking but can't seem to find where/how i should be doing these type of actions?

i know there is a SitePreDeleteHandlerProvider, its there a "SiteModuleCreatedHandlerProvider"?

 

thanks ~

 

Warner

8/18/2011 4:35:17 PM
Gravatar
Total Posts 76

Re: onModule Created actions?

No love?

Is there no way/where to set code to run after a new module has been created?

:(

8/18/2011 5:27:32 PM
Gravatar
Total Posts 18439

Re: onModule Created actions?

Sorry but no, I don't like the idea at all.

If you have some things you need to make sure exist in your module you should implement a method in your module to check if it has been done and if not then do it, maybe in page load of your module control.

Module is a generic thing, having some event where every kind of module can plug in and handle the module created event for every other kind of module including its own kind is not a good idea in my opinion. Then we would be calling lots of event handlers for no reason.

Hope that makes sense.

Best,

Joe

8/18/2011 6:01:00 PM
Gravatar
Total Posts 18439

Re: onModule Created actions?

ok, after chewing on this more and thinking about the way the delete handlers are implemented I don't think it is such a bad idea since it only fires the event for the configured handler from the feature definition. I'll add a wish list item in the project tracker but I can't promise how soon I will get to it. Sorry about my initial response, its just that I'm working on some really complicated things right now and my mind is full and I don't have room for more things to think about at the moment so its a bad time to ask for things ;-D Once I finish figuring out everything for web farm support I will be back to normal operations but right now I can't think about other ideas much.

Best,

Joe

8/19/2011 7:43:06 AM
Gravatar
Total Posts 76

Re: onModule Created actions?

Thanks Joe,

I understand there are much more important things. Web Farm support sounds like a fun project :)

I also don't think its high on the priority list... it was just one of those "nice to have"

 

Warner

You must sign in to post in the forums. This thread is closed to new posts.