CSS to show/hide selected attributes of an element

Post here questions and problems related to editing and publishing DITA content.
bjayaram
Posts: 1
Joined: Fri May 10, 2013 7:00 pm

CSS to show/hide selected attributes of an element

Post 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
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

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

Post 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
Post Reply