I have two fields in Sitecore:
I'm using sitecore MVC with glass mapper, and I need to make both fields editable from page eidtor, so I'm using this code :
<div class="callout-footer">
<p>
@using (BeginRenderLink(calloutItem, m => m.ReadMoreLink, new NameValueCollection { { "class", "group-action" } }, isEditable: true))
{
<span class="text">@Editable(calloutItem, m => m.ReadMoreTitle) </span>
}
</p>
</div>
Now I can edit the link, but the title is still not editable. How can I make them both editable from page editor?
Ayman,
There is no reason this shouldn't work and I just duplicated it locally without issue succesfully editing the Link (via the Sitecore Experience Buttons in Page Editor) and the Title (via standard text editing in the Page Editor). How exactly isn't the title editable? Are you just not able to get into the editing frame while in edit mode?
The only thought I have is that maybe your "Text" class on the span is interfering with Sitecore's page editor markup. Could you try removing the and see if you are able to edit the ReadMoreTitle?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With