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
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:
And then for each field:
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.
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.