Hiding edit fields in Edit+ or EES


(Ryan Archer) #1

I want to be able to hide certain bodycopy fields from being editable in the Easy Edit Suite interface that we are using (have not upgraded yet).

The reason for this is because we have some framework HTML that I have setup in the bodycopies that is modularized so that only one bodycopy area is as a WYSIWYG field that will be used for editors to go in and change.

 

When using the /_edit interface, I want to abstract the other "bodycopyContainerCell" so they cannot access them and only get access to the WYSIWYG editable field.

 

Currently I am doing this with CSS that is applied to only EES interface, like so:

[data-containerid="284114"] { display:none!important; }
[data-containerid="284983"] { display:none!important; }
[data-containerid="288081"] { display:none!important; }
[data-containerid="284404"] { display:none!important; }

but there is obviously issues with this approach as it's going to involve a helluva lot of css code and everytime a new page is created the css will need to have more lines added to it.

 

I'm looking for a way I can 'tag' the editable fields when they are created so only the Easy Edit interface picks up on them. Is there a way to do that? (i.e. adding an extra class to <td class="bodycopyContainerCell"></td>?

 


(Anthony Ponomarenko) #2

Disregard, this, totally missed the point


(Anthony Ponomarenko) #3

Could you not just target the 'content_type_raw_html' class and hide all the raw html divs?

 

Note this is for Edit+.


(Ryan Archer) #4

Thanks but we are still using ye olde EES circa 4.18.4 version of Squiz Matrix, so I am not having much luck with that.

I get a similar looking ID but it has extra stuff in it and I think it cannot be targeted in one line of css code

 

i.e.

 td id="bodycopy_284201_content_type_raw_html_580411_cell"

so nope, not really and option for me  :(