This option can be used to specify a custom content types for a specified template.

The parameter name must contain the name of the template for which it applies: ui.modern.form.TEMPLATE_NAME.content_type

The default content-type for search results page is text/html. This option allows you to specify a custom content type if your template doesn’t return HTML.

Setting the key

Set this configuration key in the results page (preferred) or search package configuration.

Use the configuration key editor to add or edit the ui.modern.form.[formName].content_type key, and set the value. This can be set to any valid String value.

Default value

No value - text/html will be used as a fallback.


If you have a custom template named csv-export.ftl that outputs CSV data:


If you have a custom template named json.ftl that outputs JSON data: