Pages: 1
Print
Author Topic: Multiselect Dialog for Controlled Attribute Values  (Read 15 times)
billburns
Member

Posts: 2


« on: April 26, 2017, 04:32:21 PM »

I've specialized an attribute, and I need to be able to control the values that can be populated and allow multiple space-delimited values. I defined the list using type NMTOKENS. When I try to apply a value, I get a drop-down list. Is there any way to customize this behavior?

Thanks,
Bill Burns
Content Architect | Healthwise
bburns@healthwise.org | www.healthwise.org
208.331.6917 (office)  |  208.345.1897 (fax)

Healthwise helps people make better health decisions.
Logged
billburns
Member

Posts: 2


« Reply #1 on: April 26, 2017, 04:42:25 PM »

Sorry, using Author Enterprise version 9.

Bill Burns
Content Architect | Healthwise
bburns@healthwise.org | www.healthwise.org
208.331.6917 (office)  |  208.345.1897 (fax)

Healthwise helps people make better health decisions.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2450



WWW
« Reply #2 on: April 26, 2017, 05:32:07 PM »

Is this attribute meant to be used like the DITA conditional text attributes @audience, @platform, @product, or @otherprops?

In other words, is the attribute you have specialized based on @props?

If so, you can configure the conditional text feature so that your attribute will work alongside the standard DITA conditional text attributes (listed above). See Help > Creating and modifying conditions (or search for "modifying conditions" or "ct_config.xml").

This enables a "..." button in the Attribute Inspector for conditional text attributes that opens a dialog that lets you select the values you have defined (in the ct_config.xml file). You can also access the same dialog via the Reuse menu by selecting "Apply / Remove Conditions" or by right clicking on any element and selecting "Apply / Remove Conditions". The Reuse menu contains another dialog that lets you configure how elements with specific attributes and values set appear using the "Style Conditional Text" option.

Or perhaps this is not a specialized DITA DTD? It sounds like you might be modifying the DTDs according to the XML specification (if you are creating attributes using NMTOKEN) and not DITA's more specific specialization rules. I guess we'd need to see it to be sure.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2450



WWW
« Reply #3 on: April 26, 2017, 06:02:51 PM »

Screenshots of XMetaL Author Enterprise 9 and 12 showing their respective "Apply / Remove Conditions" dialogs for setting DITA conditional text attributes (default sample attribute values are listed).


* conditional text..jpg (483.03 KB, 3000x2197 - viewed 2 times.)
Logged
Pages: 1
Print
Jump to:  

email us