Skip to content

UI.modern.form.[formName].content_type

Sets custom content type header for a given form

Key: ui.modern.form.[formName].content_type
Type: String
Can be set in: profile.cfg, collection.cfg

Description

This option can be used to specify a custom content types for a given form file.

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

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

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

See Also

top

Funnelback logo
v15.16.0