This bundle provides page management
- See the require section in the composer.json
- Page management
This bundle can be installed following these steps:
$ php composer.phar require integrated/page-bundle:~0.3
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Integrated\Bundle\PageBundle\IntegratedPageBundle()
// ...
);
}
# app/config/routing.yml
integrated_page:
resource: @IntegratedPageBundle/Resources/config/routing.xml
prefix: "/admin"
In order for contentType pages to work you need to define your controllers as services (examples can be found in Resources/config/controllers.xml).
In the service you then have to tag your controller as a contentType controller by adding the tag "integrated_page". Furthermore the "class" attribute is required in this tag. By default the showAction will be called for the contentType controller, but you can also define one or more actions in the "controller_actions" attribute.
some examples:
<tag name="integrated_page.contenttype_controller" class="Integrated\Bundle\ContentBundle\Document\Content\Article"/>
<tag name="integrated_page.contenttype_controller" class="Integrated\Bundle\ContentBundle\Document\Content\Relation\Company" controller_actions="fooAction, showAction"/>
The contentType pages will automatically be created when you create or change a contentType or channel. Channels must be enabled for the contentType, otherwise no page will be created. With multiple channels a page per channel will be created.
This bundle is under the MIT license. See the complete license in the bundle:
LICENSE
Pull requests are welcome. Please see our CONTRIBUTING guide.
This bundle is part of the Integrated project. You can read more about this project on the Integrated for developers website.