Strehler::Manual::Configuration - How to configure Strehler on Dancer2
Here is an example configuration for Strehler, code to add to your config.yml under your Dancer2 site.
Strehler: admin_secured: 0 dashboard_active: 1 languages: ['it', 'en'] default_language: 'it' timezone: 'Europe/Rome' extra_menu: [...] dashboard: [...]
Let's see wwhat all this means.
With 0 can turn off the login in the backend. You should use this configuration only for development purpose, never in production.
With dashboard_active = 1 dashboard is active. For more informations about dashboard see Strehler::Manual::Dashboard.
All the managed languages. For every language Strehler will ask multilanguage data on entry creation.
The default language
Timezone that will be used to display timestamp columns
Used by EX plugin. Default element will be the entity used by EX plugin when no entity is specified. It not specifed, it's 'article'
Extra_menu part is described in the Strehler::Manual::ExtraEntityConfiguration
Extra_menu part is described in the Strehler::Manual::Dashboard
Strehler saves datetime data in UTC and than displays it using the cofigurated timezone. Best practice to manage time data is:
Use DateTime type for database fields
Use DateTime inflator in forms
When you write a custom save of a form field remember to save the DateTime object with timezone UTC.
Standard entities obviously already follow these rules.
To install Strehler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Strehler
CPAN shell
perl -MCPAN -e shell install Strehler
For more information on module installation, please visit the detailed CPAN module installation guide.