This project is read-only.

Deleting and editing uncreatable content items

Topics: Writing modules
Mar 2, 2012 at 6:16 PM

How can one edit or delete (as an admin) content items that are not set as Creatable (they're created from code)? These are content items created from the frontend and since there is not Edit link at the content items for authenticated users anymore there seems to be no built-in way to edit those items. Also since items not creatable couldn't be listed either they also can't be deleted.

So my question would be, is there any built-in way for editing or deleting content items that are not creatable, does couldn't be listed from the admin site?

Is there any better way to handle this situation than by adding custom edit/delete links to the items (and for that fetching the corresponding links with ContentManager.GetItemMetaData())?

Thanks in advance!

Mar 2, 2012 at 6:26 PM

If you don't set the Creatable settings to a type, it's your responsibility to provide a Controller to create them, or it is because you create them in your service layer. And example is the Blog type, or Query (projections) or Taxonomy.

Mar 2, 2012 at 6:43 PM

Thanks, I see. I'll create those links then.