Key questions about this property
The answers below summarize the purpose, scope, default effect, and review scenarios for this property.
| What does it do? |
This property configures the association between document types and their corresponding icons or images, allowing for visual differentiation in the interface. |
| What area does it affect? |
Document representation settings |
| What does the default mean? |
The default value is "{
"doc": { "imageType": "icon", "imageName": "document-outline" },
"docx": { "imageType": "icon", "imageName": "document-outline" },
"xls": { "imageType": "icon", "imageName": "document-excel-outline" },
"xlsx": { "imageType": "icon", "imageName": "document-excel-outline" },
"ppt": { "imageType": "icon", "imageName": "document-powerpoint-outline" },
"pptx": { "imageType": "icon", "imageName": "document-powerpoint-outline" },
"pdf": { "imageType": "icon", "imageName": "document-template-outline" },
"txt": { "imageType": "icon", "imageName": "document-outline" },
"html": { "imageType": "icon", "imageName": "document-code-outline" },
"xml": { "imageType": "icon", "imageName": "document-code-outline" },
"default": { "imageType": "icon", "imageName": "document-outline" }
}", which is the baseline setting used unless it is changed. |
| When should you review it? |
Review this property when customizing document icons or images for better user interface clarity. |
Out of the box property record
Raw metadata from the property record.
| Property name |
glide.search.doctype_to_image_mapper |
| Sys ID |
7e068a835b321010e91728582d81c754 |
| Type |
string |
| Application |
Global |
| Default value |
{
"doc": { "imageType": "icon", "imageName": "document-outline" },
"docx": { "imageType": "icon", "imageName": "document-outline" },
"xls": { "imageType": "icon", "imageName": "document-excel-outline" },
"xlsx": { "imageType": "icon", "imageName": "document-excel-outline" },
"ppt": { "imageType": "icon", "imageName": "document-powerpoint-outline" },
"pptx": { "imageType": "icon", "imageName": "document-powerpoint-outline" },
"pdf": { "imageType": "icon", "imageName": "document-template-outline" },
"txt": { "imageType": "icon", "imageName": "document-outline" },
"html": { "imageType": "icon", "imageName": "document-code-outline" },
"xml": { "imageType": "icon", "imageName": "document-code-outline" },
"default": { "imageType": "icon", "imageName": "document-outline" }
} |
| Description |
This property defines the mapping from document type (file extension) to the image/icon that represents the document type.
Supported image types are "icon" and "image".
You can customize the icon or image by creating a new system property "glide.search.doctype_to_image_mapper.override". Below is an example:
{
"pdf": { "imageType": "icon", "imageName": "document-outline" }
}
To use image type, upload an image to db_image table and set the image name in the configuration. For example:
{
"pdf": { "imageType": "image", "imageName": "example-image.jpg" }
} |
| Updated |
2024-05-25 03:39:02 |
Sources
Official references and nearby text excerpts where this property appears.
Related properties
More in glide.search
Other properties in the same namespace.
All 8 properties in glide.search →