This project is read-only.

Module shows in two places on manage features page

Topics: General
Mar 4, 2011 at 4:23 AM

I have a single module created called MyCompany.Accounts. On the manage features page this module shows up in these two categories: Uncategorized and MyCustomCategory.
Here is my module.txt. Any ideas why this is happening?

Name: MyCompany User Accounts
AntiForgery: enabled
Author: Will Comeaux
Version: 1.0.0
OrchardVersion: 1.0.20
Description: The MyCompany Account module manages user accounts.
        Name: MyCompany User Accounts
        Description: A module for managing MyCompany User Accounts.
        Category: MyCompany
        Dependencies: Shapes, Common, Routable, Feeds, Orchard.Widgets, Orchard.jQuery


Mar 4, 2011 at 5:14 AM

Check that all lines use the same tabulation char, i.e. only tabs or only spaces, not a mix of them.

Mar 4, 2011 at 5:44 AM

Actually, I just figured out what the problem was.
In Module.txt if you set

to anything other than the assembly name of your module then Orchard will treat that name as an uncategorized module. I'm not sure what will happen if you try to enable the uncategorized one but I suspect it will fail because there really isn't a module there to enable.

For instance in my above example by file had

My assembly name was MyCompany.Account causing Orchard to think I also had an uncategorized feature named MyCompany.Account because of the assembly name I guess...

Lesson learned.

Mar 4, 2011 at 5:51 AM

Mmh, that sounds like a bug, doesn't it? Would you mind filing it in the issue tracker?

Mar 5, 2011 at 1:15 AM