[% INCLUDE 'admin/header.html' title=loc('Configuration') -%] [% BLOCK subsection %] [% heading %] [% END %] [% BLOCK just_value %] [% SET conf = c.config.$value IF NOT conf; conf = conf.join(', ') IF conf.size %] [% value %] [% conf or conf_default %] [% END %] [% BLOCK with_cobrand %] [% SET conf = c.config.$value IF NOT conf; conf = conf.join(', ') IF conf.size; cob = cob.join(', ') IF conf.size %] [% value %] [% conf %] [% cob IF cob != conf %] [% END %]

A summary of this site's configuration, running version [% git_version || 'unknown' %].

[% INCLUDE subsection heading="URLs" %] [% INCLUDE with_cobrand value="BASE_URL" cob=c.cobrand.base_url %] [% INCLUDE with_cobrand value="ADMIN_BASE_URL" cob=c.cobrand.admin_base_url %] [% INCLUDE just_value value="SECURE_PROXY_SSL_HEADER" %] [% INCLUDE subsection heading="Display" %] [% allowed_conf = FOR k IN c.config.ALLOWED_COBRANDS %] [% IF k.keys %][% k.items.join(':') %][% ELSE %][% k %][% END %] [%- ',' IF NOT loop.last %] [% END %] [% INCLUDE just_value value="ALLOWED_COBRANDS" conf = allowed_conf %] [% INCLUDE with_cobrand value="MAP_TYPE" cob=c.cobrand.map_type %] [% INCLUDE with_cobrand value="EXAMPLE_PLACES" conf = decode(c.config.EXAMPLE_PLACES.join(', ')) cob = c.cobrand.example_places %] [% INCLUDE with_cobrand value="LANGUAGES" cob = c.cobrand.languages %] [% INCLUDE with_cobrand value="ALL_REPORTS_PER_PAGE" cob=c.cobrand.reports_per_page %] [% INCLUDE just_value value="RSS_LIMIT" %] [% INCLUDE just_value value="OPEN311_LIMIT" conf_default = '1000' %] [% INCLUDE just_value value="AREA_LINKS_FROM_PROBLEMS" %] [% INCLUDE subsection heading="Geocoder" %] [% INCLUDE just_value value="GEOCODER" conf_default = '(None; default Nominatim OSM)' %] [% disconf = FOR k IN c.config.GEOCODING_DISAMBIGUATION %] [% k.key %]=[% k.value %][% ',' IF NOT loop.last %] [% END %] [% discob = FOR k IN c.cobrand.disambiguate_location %] [% k.key %]=[% k.value %][% ',' IF NOT loop.last %] [% END %] [% INCLUDE with_cobrand value="GEOCODING_DISAMBIGUATION" conf = disconf cob = discob %] [% INCLUDE subsection heading="MapIt" %] [% INCLUDE just_value value="MAPIT_URL" conf = "" _ c.config.MAPIT_URL _ "" %] [% INCLUDE with_cobrand value="MAPIT_TYPES" cob = c.cobrand.area_types %] [% INCLUDE just_value value="MAPIT_GENERATION" %] [% INCLUDE with_cobrand value="MAPIT_TYPES_CHILDREN" cob = c.cobrand.area_types_children %] [% INCLUDE subsection heading="Database" %] [% INCLUDE just_value value="FMS_DB_HOST" %] [% INCLUDE just_value value="FMS_DB_PORT" %] [% INCLUDE just_value value="FMS_DB_NAME" %] [% INCLUDE just_value value="FMS_DB_USER" %] [% INCLUDE subsection heading="Email" %] [% INCLUDE just_value value="EMAIL_DOMAIN" %] [% INCLUDE with_cobrand value="CONTACT_NAME" cob=c.cobrand.contact_name %] [% INCLUDE with_cobrand value="CONTACT_EMAIL" cob=c.cobrand.contact_email %] [% INCLUDE just_value value="DO_NOT_REPLY_EMAIL" %] [% INCLUDE subsection heading="Development" %] [% INCLUDE just_value value="STAGING_SITE" %] [% INCLUDE just_value value="SEND_REPORTS_ON_STAGING" %] [% INCLUDE just_value value="UPLOAD_DIR" %] [% INCLUDE just_value value="GEO_CACHE" %] [% INCLUDE just_value value="TESTING_COUNCILS" %] [% INCLUDE just_value value="SMTP_SMARTHOST" %] [% INCLUDE just_value value="TIME_ZONE" %] [% INCLUDE just_value value="GAZE_URL" %]
Variable general.yml value Cobrand module override
Site title [% site_name %]
Web templates [% c.cobrand.path_to_web_templates.join('
') %]
Language override - [% 'domain=' _ c.cobrand.language_domain IF c.cobrand.language_domain %] [% 'language=' _ c.cobrand.language_override IF c.cobrand.language_override %]
MAPIT_ID_WHITELIST [% FOR id IN c.config.MAPIT_ID_WHITELIST %] [% id %][% ',' UNLESS loop.last %] [% END %]

Cobrand module

Other things can be changed on a cobrand basis by using functions in an (optional) Cobrand .pm module, as explained in the customising section of our documentation. If you wish to add new functionality just for your cobrand that can't be done simply by changes to your cobrand's templates, you might need to add a new Cobrand function.

Examples of cobrand functions are below; this is not exhaustive. Many were added for one specific cobrand, so didn't need a general configuration option. Please feel free to discuss on our mailing list if you think something should be moved to the general.yml file, done differently, or have any questions.

[% INCLUDE 'admin/footer.html' %]