diff options
author | Struan Donald <struan@exo.org.uk> | 2011-11-18 14:32:25 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-11-18 14:32:25 +0000 |
commit | 9a83d679abbdb467ec1c363d086b35f09a4c7044 (patch) | |
tree | 30c8fece41b518080fd420d33c2aaf742ddd6ea0 /notes | |
parent | d941a8c26e943c941f8e37ecbd9a9982dd41cb70 (diff) | |
parent | 375610803cfcad104049ff895c77c53e6767e1e7 (diff) |
Merge remote branch 'origin/master' into js-validation
Diffstat (limited to 'notes')
-rw-r--r-- | notes/cobranding.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/notes/cobranding.txt b/notes/cobranding.txt new file mode 100644 index 000000000..1db3b8188 --- /dev/null +++ b/notes/cobranding.txt @@ -0,0 +1,44 @@ +Notes on adding a co brand +-------------------------- + +Basic steps + +Assumes cobrand is for ExampleCom + +NB: this is moderately specific to producing cobrands for UK councils + +1: copy an exiting perllib/FixMyStreet/Cobrand/ file to perllib/FixMyStreet/Cobrand/ExampleCom.pm + * Change package name at top of file + * Change following functions accordingly: + site_title + site_restriction + problems_clause + enter_postcode_text + council_check + base_url + all_councils_report should return 0 + disambiguate_location - see below for details on this + +2: create a web/cobrands/examplecom folder and put custom css/images/js in here + +3: create templates/web/examplecom/ and put a header.html and footer.html with relevant html + +4: edit conf/general and add examplecom to allowed cobrands + +5: restart server + +6: on dev server you can append ?_override_cobrand_moniker=examplecom +to display the cobrand. ?_override_clear_all=1 will remove this + +disambiguate_location + +The results of this are used to provide a bounding box for reverse +geolocation. + +There's a script in bin - generate_council_location that takes the +mapit area code for the council as a argument and generates the +contents of the disambiguate_location hash. + +You can also add a town key to the hashref which will be appended +on to the end of geolocation queries in order to narrow down results +for popular road names, e.g High St |