c# - How do I enable delete when using Html.Sitecore().ItemRendering()? -
i have looked around internet solution , cant seem find help.
@foreach (sitecore.data.items.item child in html.sitecore().currentitem.children) { @html.sitecore().itemrendering(child) }
this code pointing view rendering in turn outputs basic details.
<h3>@html.sitecore().field("question")</h3> <div> @html.sitecore().field("comment") </div>
i have gotten render correctly , can edit each part individually "question" or "comment" text, looking add way delete entire item original page using page editor.
i tried adding "delete" button rendering did not show up.
any appreciated greatly!
when have listing of sitecore items , need remove item list in page editor edit frames can useful.
this example here shows how can add interface remove item multilist affect rendering of items.
https://briancaos.wordpress.com/2011/11/28/using-sitecore-editframe-in-pageedit/
to edit frames working mvc: https://visionsincode.wordpress.com/2015/01/08/how-to-use-editframe-in-sitecore-mvc/