Flow/Change configuration

From Aimeos documentation

Flow
Other languages:
English 100%

The core library contains a lot of configuration options documented in the Configuration section that can be changed in the Aimeos Shop section of the Configuration/Settings.yaml file and they are displayed in the documentation like this:

client/html/catalog/filter/default/button = 1

TYPO3 Flow uses the YAML configuration format by default which looks a little bit different. In Flow YAML, each configuration part is indented by two additional spaces, so the "client" part below the "Aimeos Shop" section is indented by four spaces while the "html" part is indented by six spaces and so on.

As a rule of thumb, replace each slash (/) by a colon, a new line and two spaces (" ") for each additional indention:

  1. Aimeos:
  2.   Shop:
  3.     client:
  4.       html:
  5.         catalog:
  6.           filter:
  7.             default:
  8.               button: 1

Value lists

The same works with arrays of values as well. In this case you can shorten YAML syntax by using the square brackets ([ and ]) in front of the list of values:

  1. Aimeos:
  2.   Shop:
  3.     client:
  4.       html:
  5.         catalog:
  6.           filter:
  7.             default:
  8.               subparts: [search, tree, attribute]

Quoting

Values that contains not only values consisting of a-z, A-Z and 0-9 should be enclosed in single quotes ('):

  1. Aimeos:
  2.   Shop:
  3.     test: 'my test value'

Some values can contain a percent sign, which is a special operator in Flow YAML files. Those percent signs must be quoted with another percent sign. A value like "%1$s%2$s" must be added to the Configuration/Settings.yaml file as

  1. Aimeos:
  2.   Shop:
  3.     test: "%%1$s%%2$s"

Area specifc

Sometimes it's necessary to apply configuration settings only to the frontend, the admin backend or the CLI commands. Aimeos currently supports three areas:

  • command
  • backend
  • frontend

The ./Configuration/Settings.yaml configuration file can contain sections with settings only for these areas. Inside these sections, you can add all configuration options available, e.g.

  1. Aimeos:
  2.   Shop:
  3.     command:
  4.       madmin:
  5.         log:
  6.           manager:
  7.             standard:
  8.               loglevel: 7
  9.     backend:
  10.       madmin:
  11.         log:
  12.           manager:
  13.             standard:
  14.               loglevel: 5
  15.     frontend:
  16.       madmin:
  17.         log:
  18.           manager:
  19.             standard:
  20.               loglevel: 4