akroii / Contao-Boilerplate

Default file-structure & boilerplate for Contao
0 stars 0 forks source link
boilerplate contao sceleton

Contao-Boilerplate for Contao 3.5.x

What you see is what you get :)

Installation

  1. Donwload Contao-Boilerplate-Master.zip
  2. Unzip
  3. Copy folder-structure to your Contao root -> insert & merge with existing folders. Do NOT replace!
  4. Set $GLOBALS['TL_ASSETS']['JQUERY'] = '2.2.4'; in localconfig.php
  5. Set width=device-width, initial-scale=1 set Layout/Theme-Settings

Details

  1. To get the relative font-path in font-import.css set ../font/ like: src: url('../font/rubik-medium.eot');

Recommended snippets

<body id="top" class="{{ua::class}} {{page::pageTitle|standardize|strtolower}} {{page::parentAlias|standardize|strtolower}} <?php echo ($this->replaceInsertTags('{{page::alias}}') != "index" ? "sub" : "main");?><?php if ($this->class) echo ' ' . $this->class; ?>"<?php if ($this->onload): ?> onload="<?= $this->onload ?>"<?php endif; ?>>

Recommended modules for Contao