Skip to content

Commit

Permalink
Static theme documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jun 8, 2018
1 parent ee02e4c commit 37874eb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions developer/first-steps/manual_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,33 @@ Roadiz uses *Doctrine ORM* to store your data. It will directly pass this YAML c
you can use every available drivers and options from its documentation at
http://doctrine-dbal.readthedocs.org/en/latest/reference/configuration.html

Themes
------

Since *Roadiz v0.23*, themes are statically registered into Roadiz configuration for better performances
and delaying database usage. You have to register any front-end theme in your ``app/conf/config.yml`` file.
Theme priority is not handled here but in each of your themes by overriding static ``$priority`` value;

.. code-block:: yaml
themes:
-
classname: \Themes\DefaultTheme\DefaultThemeApp
hostname: '*'
routePrefix: ''
-
classname: \Themes\FooBarTheme\FooBarThemeApp
hostname: 'foobar.test'
routePrefix: ''
You can define hostname specific themes and add a route-prefix for your routing. Defaults values
are ``'*'`` for the *hostname* and ``''`` (empty string) for the route-prefix.

.. warning::

No theme configuration will lead into a 404 error on your website home page. But you will still have
access to the back-office which is now hard-registered into Roadiz configuration.

Cache drivers
-------------

Expand Down

0 comments on commit 37874eb

Please sign in to comment.