Download the PHP package elvandar/kazetenn-pages without Composer
On this page you can find all versions of the php package elvandar/kazetenn-pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elvandar/kazetenn-pages
More information about elvandar/kazetenn-pages
Files in elvandar/kazetenn-pages
Package kazetenn-pages
Short Description A page handling bundle for symfony. Part of the Kazetenn project
License MIT
Informations about the package kazetenn-pages
kazetenn-pages
Description
Kazetenn Pages is a symfony bundle that allow you to handle basic pages programatically.
Installation
You can use
composer require elvandar/kazetennpages
to install the bundle.
you will also need to configure stof/doctrineextensionsbundle
:
in config/packages/stof_doctrine_extensions.yaml
Usage
The bundle provides a simple data model to handle the programatical creation of pages and some routes and views to display those pages.
configuration:
To use the routes provided by the bundle, you will have to add the following line to config/routes.yaml
:
``
in config/packages/kazetenn-pages.yaml
:
by default there is no prefix in front the diplay route, however, using this config you can add one.
the data model
the budle articulates around 2 entities:
Page
which represent a page to display
in a page, you can define:
- a title
- a slug
- a parent
- a list of content
this will be used to handle the page display and url
if the page have no parent, her url will be:
/{blog_url}/{slug}
if the page have a parent, her url will be:
/{blog_url}/{parent_slug}/{slug}
PageContent
which handle the content of a page.
in a pageContent, you will can define:
- a content
- a template
- a parent
- an order
- a align (vertical or horizontal)
- a list of content
The content is a text/html. It will always be rendered using the raw
twig function.
The template allows you to define a twig template to personalize the rendering of the content without storing html in the database.
A pageContent can reference multiple other pageContent (childs). Using the align property, you can define the way a content's childs will be rendered. Using this, you can easilly create a grid of content, allowing you to easily order you content. To ease this, a pageContent's content property can be null, allowing you to create an ordering pageContent.
Finally, the order property allow you to choose the rendering order of a pageContent between him and same level contents.
License
The pages bundle is under MIT liscence
All versions of kazetenn-pages with dependencies
ext-json Version *
composer/package-versions-deprecated Version 1.11.99.4
doctrine/annotations Version 1.13.*
doctrine/doctrine-bundle Version 2.7.*
doctrine/doctrine-migrations-bundle Version 3.2.*
doctrine/orm Version 2.12.*
elvandar/kazetenn-admin Version 1.*
elvandar/kazetenn-users Version 1.*
elvandar/kazetenn-core Version 1.*
phpdocumentor/reflection-docblock Version >=5.2
stof/doctrine-extensions-bundle Version >=1.7
symfony/asset Version 6.2.*
symfony/console Version 6.2.*
symfony/dotenv Version 6.2.*
symfony/expression-language Version 6.2.*
symfony/flex Version 2.2.*
symfony/form Version 6.2.*
symfony/framework-bundle Version 6.2.*
symfony/http-client Version 6.2.*
symfony/intl Version 6.2.*
symfony/mailer Version 6.2.*
symfony/mime Version 6.2.*
symfony/monolog-bundle Version 3.*
symfony/notifier Version 6.2.*
symfony/process Version 6.2.*
symfony/property-access Version 6.2.*
symfony/property-info Version 6.2.*
symfony/proxy-manager-bridge Version 6.2.*
symfony/runtime Version 6.2.*
symfony/security-bundle Version 6.2.*
symfony/serializer Version 6.2.*
symfony/string Version 6.2.*
symfony/translation Version 6.2.*
symfony/twig-bundle Version 6.2.*
symfony/uid Version 6.2.*
symfony/validator Version 6.2.*
symfony/web-link Version 6.2.*
symfony/yaml Version 6.2.*
twig/extra-bundle Version 3.4.*
twig/twig Version 3.4.*