Remove Content SummaryAdmin Actions

Topics: General
Jan 3, 2012 at 6:19 PM


In the SummuryAdmin page of a single ContentType I want to remove the Edit and Delete links of every displayed part. How can I do?

I don't want remove line 20-21 in Content.SummuryAdmin.cshtml file because otherwise I remove the links from all the ContentTypes and not only from one.


Thank you

Jan 3, 2012 at 11:57 PM

This sounds weird. Why do you want to do that?

Jan 5, 2012 at 8:02 PM

Sorry for the delay, I was very busy!

My idea was create a page for editing built with jQuery that allows editing all the content parts of the ContentItem. At the end all the parts are sent to the server with ajax and the ContentItem was created via code.
So, I need to change the link to which it refers "edit" to call my own edit page.

Jan 5, 2012 at 8:14 PM

If you ask the content manager to build the editor for a content item, it will return a composite shape that you can then alter with code. Another thing you can do is change the display type, and have variations based on that.

Jan 5, 2012 at 8:16 PM

To change the Edit link, all you need to do is in an IContentHandler hook into the OnGetContentItemMetadata event. Then you can set metadata.EditorRouteValues to whatever action you need.