Symfony App Branding


Log in to deploy new versions or manage existing ones.


This page is the documentation and demo of the common branding for the EurActiv Symfony Apps based on the VGMHCommonBundle.


Use

Add the following lines to config.yml:

vgmh_common:
    stylesheet: '//assets.euractiv.com/symfony/v2/style-min.css'
    javascript: '//assets.euractiv.com/symfony/v2/script-min.js'
    favicon: '//assets.euractiv.com/symfony/v2/favicon.ico'

What it does

If the app is being shown on a very small screen or if it is inside of an IFRAME, only the top navbar coloring is applied.


File list for version 2

FileDescriptionPreview
favicon.ico

a common favicon

//assets.euractiv.com/symfony/v2/favicon.ico
-
icon.png

a company icon

//assets.euractiv.com/symfony/v2/icon.png
-
logo.png

the company logo

//assets.euractiv.com/symfony/v2/logo.png
-
script-min.js

the common javascript, minified

//assets.euractiv.com/symfony/v2/script-min.js
-
script.js

the common javascript

//assets.euractiv.com/symfony/v2/script.js
-
style-min.css

the common stylesheet, minified

//assets.euractiv.com/symfony/v2/style-min.css
-
style.css

the common stylesheet

//assets.euractiv.com/symfony/v2/style.css
-

Configuration

Configuration is located in the file /config/symfony.php. If you do not have the ability to modify this file, contact your administrator to have options changed. The configuration file should contain an array with the name $config containing the following offsets:

NameTypeDescriptionCurrent Setting
callmap_driverstringThe callmap driver to use, either "sqlite", "fsstore" or "noop"
noop
callmap_labelsarrayLabels for the callmap, where the key is the regular expression to match and the value is the label to useLogin to view this setting
callmap_visualize_defaultarrayNodes to visualize by defaultLogin to view this setting
callmap_probabilityintegerProbability that a given hit will log. Important for high traffic sites. Set higher for lower probability.
1000
http_allowed_domainsarrayAllowed domains for fetching assets or generating URLsLogin to view this setting
http_allowed_urlsarraySpecified URLs or regular expressions of specified URLs match for fetching assets or generating URLsLogin to view this setting
http_connect_timeoutintegerThe amount of time, in seconds, that cURL should wait before returning an error status. 15 is a good value for most cases.
15