Disbaling a unwanted feauture

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.
6/12/2009 5:43:09 AM
Gravatar
Total Posts 12

Disbaling a unwanted feauture

 Hi Joe.... I just was wondering how can i disable/remove the contact form feauture from the dropdown in the admin section in the page named PageLayout.aspx. I removed the contatc form reference from the post copy build and in set up folder of mojoportal.feautures.UI undr applications/contactform/FeatureDefinitions/30000_ContactFormModule.config i have cleared the file contents then i did a rebuild and also ran default.aspx from the setup of mojoportal.web still i am getting the contact form feauture in the  dropdown as it is obtaining from databse.

 

so the summary is if i dont need a feauture to be avaliable in the dropdown to be added for the user how do i do it?

6/12/2009 6:20:20 AM
Gravatar
Total Posts 18439

Re: Disbaling a unwanted feauture

If you remove it from the config files before installation it will not be there but it was already installed when you removed the config files. You can first delete any instances of it from content manager then delete the feature itself from under Admin > Advanced Tools > Feature Installation

However it won't uninstall the tables and stored procedures from the db.

In a multi site installation you could also make the first site an admin site maybe with an url like admin.yourdomain.com and from there create a child site for www.yourdomain.com and from the admin site you can choose which features are "installed" in child sites.

So really the best way if you don't want the feature at all is to build your own package from source code after having removed the config files for the features you don't want and then package it with UnleashIt

Keep in mind that the files come from mojoPortal.Features.UI/Setup and are copied by post build events to the Web/Setup tree. So if you delete them from Web and not from mojoPortal.Features they will return on post build.

Hope it helps,

Joe

6/12/2009 6:24:50 AM
Gravatar
Total Posts 12

Re: Disbaling a unwanted feauture

Thanks Joe

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