[oXygen-user] Author view: Hide DITA ditamap data about attribute
Alex Jitianu
alex_jitianu at sync.ro
Fri Sep 7 08:26:49 CDT 2018
Hello,
You are still seeing the other form control because that one is added on
a :before pseudo element while yours is added on an :after .
You should change the rule to override the:before element like this:
map > topicmeta > data-about > data[name="icon_url"]:*before *{
content: "Pick a local icon or a remote URL for the icon:"
oxy_urlChooser(
edit, "@href",
columns 50);
}
The CSS Inspector view [1] is quite useful to debug such situations.
[1]
https://www.oxygenxml.com/doc/versions/20.1/ug-editor/topics/author-css-inspector-view.html
Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 9/7/2018 12:57 AM, Steven Anderson wrote:
> In my DITA topic I have the following:
>
> <map xml:lang="en-us" linking="none">
> <title>Title</title>
> <topicmeta>
> <shortdesc>shortdesc</shortdesc>
> <data-about>
> <data name="icon_url" href="http://<some_path>"/>
>
> In author view, by default, I see a form field for the name. I'd like
> to override that using CSS.
>
> I figured out how to do
>
> map > topicmeta > data-about > data[name="icon_url"]:after {
> content: "Pick a local icon or a remote URL for the icon:"
> oxy_urlChooser(
> edit, "@href",
> columns 50);
> }
>
> which allows me to show a picker for an attribute I do want to
> display, but, I still see the form field for the name attribute.
>
> Same issue for the value field; if I want to hide it, how can I hide it?
>
>
> --
>
> Steve
>
> <http://smart.salesforce.com/sig/sanderson//us_mb/default/link.html>
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20180907/5186f92c/attachment.html>
More information about the oXygen-user
mailing list