Skip to content

Target

Limits the available output formats (targets). Access can also be limited with the acl attribute.

If any target node is present, only those targets are available; otherwise all targets are available. A request for any other format returns HTTP 403 Target [...] not allowed.

Attributes

  • name - target name, see Target names
  • label - display label
  • acl - permission required for the target

Target names

The target name is compared with the last extension of the renderer:

  • xlsx, html, xml, md, txt, epp, csv, svg, pdf, frx - e.g. target pdf allows both invoice.hbs.pdf and invoice.frx.pdf
  • json - also covers renderers without an extension, such as run, used by the UI

A target with an acl is available only to users with that permission. The same name can be listed twice, once with an acl and once without.

Example

XML
<srs label="Hello World">
  <def>
    <itm>select 'Acl column test 1' test1 , 'Acl column test 2' test2</itm>
    <itm model="target" name="xlsx" label="Excel"/>
    <itm model="target" name="html"/>
    <itm model="target" name="xml"/>
    <itm model="target" name="pdf"/>
    <itm model="target" name="json" acl="@teamshort"/>
    <itm model="target" name="xlsx" acl="ims_excel"/>
    <itm model="target" name="json"/>  
  </def>
</srs>