Download the PHP package icedevelop/layout-bundle without Composer
On this page you can find all versions of the php package icedevelop/layout-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icedevelop/layout-bundle
More information about icedevelop/layout-bundle
Files in icedevelop/layout-bundle
Package layout-bundle
Short Description This bundle implements the base layout for agid ita web toolkit
License MIT
Homepage https://github.com/RetItaliaSpA/LayoutBundle
Informations about the package layout-bundle
ServicesBundle
This bundle implements the agid ita web toolkit.
Note
The bundle is under heavy development and should not be used at this time.
Documentation
This bundle substitute the base page and implements the agid ita web toolkit
Installation
Step 1: Download the Bundle
Attention, all releases with tags 1.. are compatible with Symfony until 3.4.
All releases with tags 2.. are compatible with Symfony 4
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Until Symfony 3.4
app/Resorces/views/base.html.twig should be
In app/config/config.yml add:
and
and
In app/config/parameters.yml add:
The correct values for parameters can be get from https://gitlab.com/retitalia/contenitore-bundle-comuni
publish assets:
From Symfony 4
app/Resorces/views/base.html.twig should be
In app/config/config.yml add:
and
and
In app/config/parameters.yml add:
The correct values for parameters can be get from https://gitlab.com/retitalia/contenitore-bundle-comuni
publish assets:
Usage
The bundle exposes 2 templates, the base
template that includes a standard page without a right-hand side menu and a baseWithMenu
template that includes a menu on the right side.
To use the base
template:
app/Resorces/views/base.html.twig should be
To use the baseWithMenu
template:
app/Resorces/views/base.html.twig should be
The Menu block is called menu
, to use it just insert the individual lines, for example:
The class u-border-left-m set a gray bar on the left of the row and indicates that that row is selected. It must be used only for the selected row. An example can be view in ExampleMenu.html.twig
Furthermore, both templates expose a breadcrumb block where to define the breadcrumb as follows: php If the row is the last, it must not have the tag
The bundle exposes a tastiFunzione
block that is positioned just below the breadcrumb.
The body block is named body
License
This bundle is under the MIT license.