This project is read-only.

Stop display menu under New

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



How can i stop displaying menus under New



Dec 6, 2011 at 5:46 AM

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

Dec 6, 2011 at 6: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


Dec 6, 2011 at 6:15 AM

So don't make those content types creatable.

Dec 6, 2011 at 6: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));

Dec 6, 2011 at 6:22 AM

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