Removal of Unused Modules

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/25/2012 3:10:26 PM
Gravatar
Total Posts 8

Removal of Unused Modules

Hi All,

Trying to find an answer to this question, can't find anything in the forum, closes I came was the feature request for for the module recycle bin.

I'm trying to remove some unused custom modules from my dev version of mojo (Just to tidy my dev folder up a bit) and I keep getting the following when I try to remove them in the admin tools.

This feature is being used in the content system. You must delete instances of this feature before you can delete the feature itself.

Iv'e removed all instances of the content from all pages that used it, and still when I click delete in the module admin panel I get the above message.  How do I remove old modules that I no longer need?

I know I can't just delete the files beacuse that will cause chaos.

Cheers

Shawty

1/26/2012 7:38:02 AM
Gravatar
Total Posts 18439

Re: Removal of Unused Modules

Hi Shawty,

Our recycle bin of sorts is that when you remove a content instance from a page it isn't really deleted, its just removed from the page and it can be restored/recovered. You can find the content instances from Administration > Content Manager and can really delete them from either the "Publish/Delete" link or from the feature instance settings. Once you've deleted all instances of the feature you can then delete the feature itself.

However, note that that just deletes it from the database, you would need to manually remove the files, because for security reasons we can't do it from web code, ie we don't want the /bin folder to be writable by the web process, and really we don't want any of the file system to be writable except for the /Data folder and the /App_Data folder, which is the same reason we don't have a way to install the files from the UI like some other cms systems.

Hope that helps,

Joe

1/26/2012 9:59:15 AM
Gravatar
Total Posts 8

Re: Removal of Unused Modules

Hi Joe,

Thanks for that.

I thought I was going insane, but now I see how the deletion system works, it makes a lot of sense.

Once again, thanks for a great CMS.

If your curious about my tweet I'll tell you what it was that won me out and made me choose mojo over Orchard.

Orchard can't do authenticated pages, that is I can't hide an entire menu option from a non-logged in user, only widgets in Layers and even then that can be by passed quite easily.

Cheers

Shawty

1/26/2012 1:50:39 PM
Gravatar
Total Posts 18439

Re: Removal of Unused Modules

Hi Shawty,

Glad to hear you chose mojoPortal over Orchard!

I find Orchard a bit over-engineered myself and not easy to understand how it works. Too many concepts, parts, layers, widgets, clay, dependency injection to the max, so much abstraction, maximum use of lambda expressions etc. I'm sure its all very impressive to the Martin Fowlers of the world but a bit much for average developers to grok in my opinion. One of my goals with mojoPortal was to keep it simple enough that average developers could easily understand the code and maintain it if I were hit by a bus and for it to be approachable even by beginning developers, while still using good practices and fast efficient code.

I also think there is quite a contrast between an open source project developed by a team of Microsoft employees earning Microsoft salaries vs a guy like me who started out working on it nights and weekends since 2004 and built it up to the point where I could bootstrap a business around it to keep it going full time. I feel very fortunate that I'm doing well with mojoPortal in spite of competition like that. 

Best,

Joe

1/30/2012 5:52:22 PM
Gravatar
Total Posts 8

Re: Removal of Unused Modules

and a Fine job you've done.

I can also now reveal the main reason Iv'e been giving it so much attention.

I don't know if you are aware of "Lidnug" but to put it bluntly we are one of the Global .NET super groups for .NET developers, with (at last count) over 46,000 members world wide.

Our official home is on Linked-in ( http://www.linkedin.com/groups/LinkedNET-Users-Group-LIDNUG-43315 ) but we also have our unoffical home hosted by Orcsweb at http://lidnug.org/ 

Where currently running Sitefinity (Following a sponsorship from Telerik) but after having problems with version 4 we decided to find a new CMS.

As we have good contacts inside MS, and also know Bertrand-le-roy (the author of Orchard) we thought we'd give it a try, and it was great at first, until we started hitting snags.  Quite a few that where confirmed will be sometime before they'll be implemented and/or fixed.

As a result, I wen't hunting for something that would solve my issues in as quick and simple way as possible, and as a result we've chosen Mojo as our CMS.

The team that runs Lidnug are all experienced processional developers, but we run Lidnug in our spare time, and rarely have the time and resources to put masses of effort into keeping things running, esp since it's a non Profit making venture for the good of the community.

Iv'e also possibly persueded "david starr" of "scrum.org" fame to also use Mojo for there re-implementation after he asked my advice about CMS's a week or so ago.

I'm hoping to begin development sometime this week (Now I've more or less learned what I need to know) but it will be behind closed doors for a little while yet.

Once where up and running however, I'll happily fly the flag to show which CMS we are using, after all a good job, deserves some good come back.

Cheers

Shawty

1/31/2012 6:32:48 AM
Gravatar
Total Posts 18439

Re: Removal of Unused Modules

Hi Shawty,

That is awesome news! Please do let me know when the site goes live.

I'm actually a member of Lidnug on LinkedIn though I'm not very active.

Thanks,

Joe

1/31/2012 2:58:10 PM
Gravatar
Total Posts 8

Re: Removal of Unused Modules

I most certainly will do Joe.

Iv'e accepted your Linked-in request too.

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