Difference between revisions of "Templates"

From AV Scripts Wiki
Jump to: navigation, search
(Created page with "Templates in AVCMS are built using the [http://twig.sensiolabs.org/ Twig template engine]. == Getting started == If you are not familiar with the Twig template engine then y...")
(No difference)

Revision as of 10:02, 25 March 2015

Templates in AVCMS are built using the Twig template engine.

Getting started

If you are not familiar with the Twig template engine then your first step is to learn the basics by reading the Twig documentation.

Overriding templates and assets

The only template required in your theme is the index.twig file. But if you want to change the layout of other pages beyond what you are able to do with CSS, you can override them. You can also override default CSS and Javascript files. Remember, the more files you override, the more work you need to do when AVCMS is updated and changes are made.

The first step to overriding a file is finding out the name and location of the file you want to overwrite. When in developer mode you can find the name of the current page template on the developer toolbar at the bottom of all pages.