UI Modern Form Content Type (collection.cfg)

Description

This option can be used to specify a custom content type for a given form file, when using the Modern UI.

The parameter name must contain the name of the form file for which it applies: ui.modern.form.[form 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 form doesn't return HTML.

Default value

There is no default value because the parameter name must contain the name of the form for which it applies.

Examples

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

ui.modern.form.csv-export.content_type=text/csv

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

ui.modern.form.json.content_type=application/json

If you have a custom form named rss.ftl that outputs XML data:

ui.modern.form.rss.content_type=application/rss+xml

See also

top