Skip to content

Commit

Permalink
CampaignChain/campaignchain#192 Subsume all app-wide parameters under…
Browse files Browse the repository at this point in the history
… campaignchain_core using tree builder
  • Loading branch information
groganz committed Jul 16, 2016
1 parent 3b4db3d commit acfbd26
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions open/administrator/configuration/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,35 @@ App-wide Parameters
Parameters that configure the app-wide framework are prefixed with
``campaignchain.`` and defined in two files:

* ``app/config/parameters.yml`` contains the parameters that should be
considered during installation.
* In ``app/config/config_campaignchain.yml``, you will find other app-wide
parameters, which contain default values that should be fine for most
installations of CampaignChain.
* *app/config/parameters.yml* contains the parameters that should be
considered during installation under the ``parameters`` key.
* In *app/config/config_campaignchain.yml*, you will find other app-wide
parameters (again under the ``parameters`` key), which contain default values
that should be fine for most installations of CampaignChain.

For example, in *parameters.yml*, there's this option to define the route of
the tracking script:

.. code-block:: yaml
parameters:
campaignchain.tracking.js_route: /tracking.js
Bundle-specific Parameters
--------------------------

Each bundle or module might define its own configuration options. These are all
listed in *app/config/config_campaignchain_bundles.yml* under an alias for each
bundle, e.g. ``campaignchain_core``.

For example:

.. code-block:: yaml
campaignchain_core:
env: prod
tracking:
id_name: cctid
js_mode: prod
js_class: CCTracking
js_init: cc

0 comments on commit acfbd26

Please sign in to comment.