Customizer's Guide > Customizing DITA Support > Customizing the DITA Resource Manager > Customizing the Type of Files to Display in the Show and Type Options
  
Customizing the Type of Files to Display in the Show and Type Options
You can customize the type of files displayed in the Resource ManagerShow and Type options using the following persistent user preference:
com.arbortext.dita.rm.[(doctype).](tab).(filter)
For the optional doctype token, you can specify a specific document type base name (for example, ditabase or bookmap). If omitted, the preference applies for all document types that do not have an explicit preference value set.
For the tab token, you can specify the same values as those used to set the default tabs.
For the filter token, you specify the option you want to customize. You can use either showFilter or typeFilter.
The value of the preference is a string identifying the file filter. In general, the following naming rules are used for filters:
When the filter is for elements based on a class, the value is that base class — for example, topic/topic for All Topics.
When the filter is the same as a file extension or tag name, the name is the named thing in lower case — for example, pdf, html, fig, or section.
Otherwise, the name is the same as the English label for the filter in lower case with spaces replaced by underscore ( _ ) characters.
You can use the following values for Show option filters:
English Label
Value
All elements
all
All elements with IDs
all_elements_with_ids
All topics
topic/topic
Key definitions
key_definitions
Key references
key_references
fig
fig
table
table
li
li
fn
fn
section
section
Valid Elements
valid_elements
Valid elements with IDs
valid_elements_with_ids
You can use the following values for Type option filters:
English Label
Value
Topic
topic
Topic or Map
topic_or_map
Map
map
Image
image
PDF
pdf
HTML
html
Any
any
All Graphics
all_graphics
Bitmap Graphics (*.bmp)
bmp
Graphics Interchange Format (*.gif)
gif
IsoDraw Graphics (*.iso, *.isoz)
iso
JPEG File Interchange Format (*.jpg)
jpg
Portable Network Graphics (*.png)
png
ProductView Graphics (*.edz, *.pvz)
edz
Scalable Vector Graphics (*.svg)
svg
Tag Image File Format (*.tif)
tiff
Vector Graphics (*.cgm, *.eps)
cgm
For example, you could use the following ACL code to set the default Type option value to PDF for all tabs and document types:
set_user_property(\
"com.arbortext.dita.rm.typeFilter", \
"pdf");
You could use the following ACL code to set the default Type option value to Topic or Map on the Topic tab for DITA BookMaps:
set_user_property(\
"com.arbortext.dita.rm.bookmap.topic_tab.typeFilter", \
"topic_or_map")
You could use the following ACL code to set the default Show option value to All topics on the Link/Xref tab for all Learning and Training topics:
set_user_property(\
"com.arbortext.dita.rm.learningDitabase.link_xref_tab.showFilter", \
"topic/topic")