How to extend features

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/26/2010 4:34:45 PM
Gravatar
Total Posts 2

How to extend features

Before I start let me apologize in advance in case my questions are way too basic. The last time I did anything in ASP was in ASP classic, and that seems to be about a hundred years or so ago now.
 

What I would like to do is add features to an already existing feature. For example, I would like to add a functino to allow geotagging of blog posts, so everytime I create a new blog post, the current locatino data is pulled from google latitude and then added to the blog entry. A second feature is the notificatino to Twitter about new blog posts, everytime a new blog post is created, a tweet is also created to notify the followers.

How do I add things like that to existing features without changing the existing feature, so that I can stil easily upgrade.

Thanks a lot in advance

Michael

8/27/2010 7:05:43 AM
Gravatar
Total Posts 18439

Re: How to extend features

Hi Michael,

Unfortunately, you can't really extend existing features easily. If you modify the code for existing features you are forking the code and it will not be possible to upgrade without losing your changes. The only safe way to do it is to clone the feature into a completely independent copy that uses separate database tables and code. 

The only other option is to convince me to include your changes so that they go into the blog feature for everyone. I'm willing to entertain the idea of integrating your work if the changes are desirable improvements and if the implementation is well done and also would need a signed contributor agreement.

I would say these are desirable improvements, so if you feel confident that you can implement them, feel free to give it a try, then send me the modified files, I will review the changes and consider integrating these improvements.

Best,

Joe

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