Coaster uses the blade templating engine from Laravel 5. To create a new template, create a new file with the .blade.php extension within the templates folder. Next, you will need to decide on the layout of your template, will it inherit sections from a past template (commonly a header and footer), or will it have a completely new layout? Other things to take into account when creating a new template are what blocks are required and how they are to be composed.
/templates/[template_name].blade.php
ie.
/templates/home.blade.php
/templates/internal.blade.php
/templates/contact.blade.php
An example of a default homepage layout can be seen below:
{!! PageBuilder::section('head') !!}
{!! PageBuilder::block('banners') !!}
<section id="second">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2>{!! PageBuilder::block('title') !!}</h2>
{!! PageBuilder::block('content') !!}
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</section>
<!-- /.second -->
{!! PageBuilder::section('footer') !!}
The above highlights a basic homepage template consisting of three blocks and two sections that are likely to be reused throughout the site. When this template is loaded on the frontend it will look for and load the head and footer sections found within the sections folder. If these files do not exist then you'll likely encounter an error. The title block is pretty self-explanatory in that it returns the title of the page, this can be contained within the header tag of your choice, for example <h1>. The content block returns the page's text, this is already format thanks to TinyMCE and doesn't require any further formatting.
Based on Laravel 5
Additional features always being planned/researched
"git" involved
Announcing (belatedly) Coaster CMS version 5.5...
So, somewhat belatedly we have launched Coaster CMS version 5.5, which is now based on Laravel v5.5 (LTS) and mostly includes a major "under the hood" update that will make Coaster more stable and als...
Coaster CMS v5.4 is here
So, Coaster CMS v5.4 has arrived and I'm just going to give you an overview of the new features. We think this update will really help people grasp the concepts around Coaster and give you ideas o...
Where is Data Stored in Coaster CMS
We've had a couple of discussions recently with people trying to understand the data structure of Coaster and more specifically, where data is stored in Coaster CMS and I thought I'd summarise some of...