Before you begin you should have:
We continue to put security at the front of what we do, as such this tester now runs under https. To be able to use the tester we therefore require template urls and all resources in that template to be referenced as https.
Thank you
There are currently two versions of the reverseCMS code in general use, version 1.0 and version 2.0, version 1.0 templates are compatible with version 2.0 code, and there is partial compatibility of version 2.0 templates with version 1.0 code. This tester can test both versions but will give information messages where features will not be available or where code is not required.
If you are an existing customer whose reverseCMS template was created before September 2015 then you will have this code on your server.
A reverse CMS 1.0 template must include a {meta} tag, which inserts our meta data. In version 1.0 menu and breadcrumb styling was done as part of the modern.gov code and so could not be changed without a request to modern.gov support.
Modern.gov is happy to arrange for the version 2.0 code to be applied to your system if you would like to use the new features as part of a rebrand, simply contact support@moderngov.co.uk
All new customers after September 2015, and existing customers who have had a rebrand since then and have asked for the version 2.0 code will have this version.
This version removes the need to add the {meta} tag in the <head> element of the page. It also allows users to have more control over navigation and breadcrumb styling via the {settings} tag.
The most common issue with reverse CMS templates is links to resources. When you are building the template all your resources are local to the template page, so the tendancy is to refer to the resources locally:
<link href="/path/to/resources/styles.css />
This may work in the template, however once the the Modern.gov code has pulled in the html these relative linked resources will be looked for on the modern.gov server. Since they won't be there the page will render without styles and images. Therefore the correct way to reference resources, and links to other pages in your main website is:
<link href="http://www.council.gov.uk/path/to/resources/style.css"
When using the tester if resources appear to be missing check in your browsers webtools for missing resources (returning 404 errors).
Please note you cannot use the <'base /> tag to set a default url path as this will cause the modern.gov links to become based off this url and then they will not work.
The {pagetitle} tag normally only needs to be used once in your template within the <title> tag. The tag can be anywhere within the title tag, so for example any of the following are valid:
<title>{pagetitle} - Council</title>
<title>Council : {pagetitle}</title>
<title>Our Council, {pagetitle} - Proud to serve the local community</title>
The {pagetitle} tag may be used any number of times in the page which means that it can be additionally used in <meta> tags or other features of your pages. However the {pagetitle} tag is not needed above the {content} tag. The {content} tag will automatically insert a title on the page. If you include both the {pagetitle} and {content} tags you will get a double heading.
Most customers host their modern.gov pages on a domain which is not the same as their main domain, such as democracy.council.gov.uk, this is good practice and the encouraged method, and while most resources have no issues being shared across domains custom fonts prove to be the exception.
By default most browsers will not load a font file unless the 'Access-Control-Allow-Origin: *' header is present which allows Cross Origin Resource Sharing, this setting must set on the server hosting the font so the exact method varies between architectures.
A helpful website in this area is http://enable-cors.org.
Once the modern.gov system has been configured to use your new template it is very important that the template page remains live. This is because the modern.gov pages refer back to the template in order to brand the modern.gov pages, if the template is missing then the modern.gov pages will not be branded.
In the event that a template does become unavailable a default branding with a warning message is displayed:
This means that the system will still be usable if the branding is unavailable.
Once you have a template and an active url you will be able to test it here by entering the url in the box below and clicking 'Continue'.
* Please note the tester uses one cookie which allows you to fold the 'Checks' box up to see any content underneath, if you disable cookies the page should continue to work fine but the 'Checks' box will continue to appear on each page. Any cookies that are set within your template will also be set for the tester page, we have no control over that.