I am retrieving my dynamic Component from the Broker and using its field in my view (cp view), to display content using DD4T and MVC4. Now, I am facing difficulties while trying to setup SiteEdit for my dynamic managed content. I can not use the standard method where I can pass my static CP (included in Page) as model to the method SiteEditComponentPresentation
.
I am trying with the following method as well, but not able to:
public static MvcHtmlString SiteEditComponentPresentation(this HtmlHelper helper, IComponent component, string componentTemplateId, bool queryBased, string region);
In my case: @Html.SiteEditComponentPresentation(Component, "tcm:xx-yyyy-32",true,"")
And then for each field: @Html.SiteEditField(Component, Component.Fields["fieldName"])
Can you please tell me what is wrong or what exact value I should give in region? Is there any other way to work in similar scenarios? Any suggestion will help me.
update
The particular section I am not able to edit is coming from an ajax call, inside a <div>
the whole content of the dynamic view is getting populated in something like: <div id="divContent"></div>
, where divContent
is my dynamic HTML getting linked to my actual page.
In the dynamic view I am using a non-tridion model, but for some section I am calling the broker to retrieve Component where I need site-edit enabled.
<div>
the whole content of the dynamic view is getting populated in something like :<div id="divContent"></div>
, wheredivContent
is my dynamic html getting linked to my actual page. In the dynamic view I am using a non-tridion model, but for some section I am calling the broker to retrieve Component where I need site-edit enabled. Please let me know if you need any further information.