Provide a link for an editor in edit mode



I have the need to provide a link to the editor in edit mode. The link needs to go to an external website and would only be for one content type so ideally needs to be a property of that content type.

Has anyone done this before or know how to acheive this?



May 19, 2017 13:29

Hi Mark,

You can create a property on the content type. Then in your view check using the helper method if PageEditing.PageIsInEditMode then use @Html.DisplayFor(m=>m.PropertyName)

May 20, 2017 18:07

Thanks for the suggestion Aniket but it's not quite what I'm trying to acheive. I need the link to be in the all properties view rather than the front end view.

May 22, 2017 14:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.