Removing properties from the visual editor

Vote:
 

Hi all,

I've been looking into ways of removing a specific blue, clickable box from the visual editor on a standard page and can't seem to find a way of doing using any method.

Does anyone have any ideas if this is possible?

Thanks in advance!

#86162
May 15, 2014 11:50
Vote:
 

Not sure if your talking about the blue border around properties or the tinymce editor.

If it's the first one you should be able to use the @Html.DisplayFor instead of @Html.PropertyFor method if you do not wish to get the blue border for a specific prop.

If it's the later you could change what buttions to show by going to admin - config tab - Edit Property Types - scroll down to XHTML string (>255)  and then drag and drop what options to use.

#86163
May 15, 2014 12:04
Vote:
 

Do you want to disable DOPE (direct on page edit) functionality?

Intead of using

@Html.PropertyFor(x => x.CurrentPage.SomeProperty)

you can use

@Html.DisplayFor(x => x.CurrentPage.SomeProperty)


edit: Wrote at the same time as Petter, sorry :)

#86164
Edited, May 15, 2014 12:04
Vote:
 

Hi guys, thanks for the quick response.

I'm after the ability to remove the blue border around a specific prop, that's right. Sorry about the confusion!

Unfortunatly, we're using Web Forms, not MVC. Is there a way of achieving this using web forms?

#86320
May 19, 2014 11:54
Vote:
 

If you can control this on the model class it's just to add the ScaffoldColumn attribute to your property:

[ScaffoldColumn(false)]
public string Whatever { get; set; }

There is actually a bug fix that's been done recently that still creates an overlay (the blue border) even though the property has been marked as non-editable but this should be released within a week or two.

#86327
May 19, 2014 13:03
Vote:
 

Thank you so much Linus, that worked a treat :)

#86329
May 19, 2014 13:14
Vote:
 

Since we've updated our site to 7.1.4, the [ScaffoldColumn(false)] has stopped working?

Is this a known issue?

Thanks in advance!

#88777
Jul 30, 2014 12:46
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.