Below is a list of useful functions and features within coaster for you to try out and also as a reference for when you need a reminder of what does what.
{{ Pagebuilder::page_id() }}
Returns null if 404 page or external.
{{ Pagebuilder::parent_id() }}
Returns null if no parent exists.
{{ Pagebuilder::page_name($page_id) }}
Returns page name for a page_id. If no page_id set, returns current page name.
{{ Pagebuilder::page_url($page_id) }}
Returns full url for a page_id. If no page_id set, returns current page url.
{{ Pagebuilder::page_template_id() }}
Returns the id of the current template, if no template is set (ie. on a 404 page) will return null
{!! Pagebuilder::breadcrumb($options = array()) !!}
Will return and format the page path using the templates:
/breadcrumbs/[view_name]/active_element.blade.php (last item in breadcrumb trail ie. current page)
/breadcrumbs/[view_name]/link_element.blade.php (higher level crumbs)
/breadcrumbs/[view_name]/separator.blade.php (separator html)
/breadcrumbs/[view_name]/wrap.blade.php (html to wrap around the crumbs)
Available options:
'view' => 'default' (default: default)
{!! Pagebuilder::sitemap($options = array()) !!}
Same as options/variables as category function just loads all top level pages.
Any template can have a corresponding template used as a feed:
/feed/[view].blade.php
ie. /feed/xml/sitemap.blade.php
Then any page using a template with a corresponding feed template can be accessed via:
/.[extension] ie. /sitemap.xml
Laravel 5: config('coaster::') ie. config('coaster::site.name')
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...