Could anyone help to enable SiteEdit for ComponentLink Fields in DD4T?
I am fine with direct and embedded fields.
For component link fields, I am trying like below. But this is not working for me.
Fields are provided for Inline Editing.
var linkedcomponents = Model.Fields["FieldName"].LinkedComponentValues;
for (int counter = 0; counter < linkedcomponents .Count; counter++)
{
var complinks = Model.Fields["FieldName"].LinkedComponentValues[counter];
MvcHtmlString Desc = MvcHtmlString.Empty;
Desc = complinks.Fields["FieldName"].Value.ResolveRichText();
<span>
@Html.SiteEditField(Model, complinks.Fields["FieldName"])@MvcHtmlString.Create(Desc.ToString())
</span>
}