Page 1 of 1

CSS to show/hide selected attributes of an element

Posted: Thu Sep 26, 2013 9:29 pm
by bjayaram
I have set up a custom styling for the <data> element but in Author mode I want to hide only the datatype attribute, for example.

How can I do it?

Thanks,
Jayaram

Re: CSS to show/hide selected attributes of an element

Posted: Fri Sep 27, 2013 11:48 am
by alex_jitianu
Hi,

Do you want the datatype attribute to be hidden from the Attributes View? You'll have to use the Oxygen's Java API and implement an ro.sync.ecss.extensions.api.attributes.AuthorAttributesDisplayFilter.. This filter is added over a WSAuthorEditorPageBase. An attribute filtered this way will not be presented anywhere in the author mode nor in the helper views.

Best regards,
Alex