fab/sculpin-pages-bundle

1.0.0 2015-03-03 19:18 UTC

This package is auto-updated.

Last update: 2024-10-18 21:19:24 UTC


README

Setup

Add this bundle in your sculpin.json file:

{
    "require": {
        "fab/sculpin-pages-bundle": "@dev"
    }
}

and install this bundle running sculpin update.

Now you can register the bundle in SculpinKernel class available on app/SculpinKernel.php file:

class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    protected function getAdditionalSculpinBundles()
    {
        return array(
           'Fab\Sculpin\Bundle\PagesBundle\SculpinPagesBundle'
        );
    }
}

Usage

Files under _pages are recognized as a Content Type Page.

A Twig variable page.menu can be loop to automatically generate a menu.