Stop display menu under New

Topics: Customizing Orchard
Dec 6, 2011 at 4:43 AM

Hi,

 

How can i stop displaying menus under New

 

lakmal

Coordinator
Dec 6, 2011 at 4:46 AM

You can't. Not easily at least. Why would you want to do that?

Dec 6, 2011 at 5:14 AM

I have created two module called category and article. I have admin menu . but there was two menu item under New called category and article. I want only Keep admin menu

lakmal

Coordinator
Dec 6, 2011 at 5:15 AM

So don't make those content types creatable.

Dec 6, 2011 at 5:20 AM

That mean do i want comment this code and handle it from Controller

protected override DriverResult Editor(CategoryPart part, dynamic shapeHelper)
        {
            return ContentShape("Parts_Category_Edit",
                () => shapeHelper.EditorTemplate(
                    TemplateName: "Parts/Category",
                    Model: part,
                    Prefix: Prefix));
        }

Coordinator
Dec 6, 2011 at 5:22 AM

No. Your content types appear under "New" because they have been marked Creatable in your migrations.