Configuration/Core/client/jsonapi/supplier/standard/template

From Aimeos documentation

< Configuration‎ | Core/client/jsonapi‎ | supplier
Revision as of 15:12, 4 October 2019 by Aimeos (talk | contribs) (1 revision imported)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Summary

Relative path to the supplier lists JSON API template

client/jsonapi/supplier/standard/template = supplier/standard
  • Default: supplier/standard
  • Type: string - Relative path to the template creating the body for the GET method of the JSON API
  • Since: 2017.03

Description

The template file contains the code and processing instructions to generate the result shown in the JSON API body. The configuration string is the path to the template file relative to the templates directory (usually in client/jsonapi/templates).

You can overwrite the template file configuration in extensions and provide alternative templates. These alternative templates should be named like the default one but with the string "standard" replaced by an unique name. You may use the name of your project for this. If you've implemented an alternative client class as well, "standard" should be replaced by the name of the new class.

See also

How to adapt the configuration: