Message-ID: <255144768.2978.1485851491864.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2977_2054126050.1485851491863" ------=_Part_2977_2054126050.1485851491863 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html EzLandingPageFieldTypeBundle Configuration

EzLandingPageFieldTypeBundle Configuration

=20
=20
=20
=20
=20

This page describes features available only in eZ Studio.

=20
=20
=20
=20
=20
=20
=20

The eZLandingPageFieldType represents an editable page that can be built= from defined set of blocks.

The user can use them to build a dynamic page. The configuration of layo= ut and blocks is stored in the default_layouts= .yml file.

=20
=20
=20
=20
In this topic
=20

=20
=20
=20
=20
=20
=20
=20

La= yout configuration

=20
=20
=20
=20
=20
=20

The layout configuration is stored in the d= efault_layouts.yml file with the following structure below:

 

=20
=20
=20
=20
=20
=20

In eZ Publish (legacy) you could configure a layout in the ( = DemoBundle / Re= sources / config / ezpage.yml) file. 

Example of settings:

=20
=20
=20
=20

In eZ Studio you can configure a layout in the  ezstudio-demo-bundle / Resources / conf= ig / default_layouts.yml= file.

Example of settings:

=20
=20
=20
=20
=20
=20
=20

Page FieldType     = ;            &n= bsp;            = ;             <= br>

=20
ezpage:
    # List of zone layouts provided by the DemoBundle
    # Zone layouts are used when rendering an ezpage field.
    # See "ezpage_field" block in EzPublishCoreBundle::content_fields.html.
    # A concrete example can be found in eZDemoBundle:full:landing_page.htm=
l.twig
    layouts:
        GlobalZoneLayout:
            name: Global zone layout
            template: "eZDemoBundle:zone:globalzonelayout.html.twig"
        2ZonesLayout1:
            name: 2 zones (layout 1)
            template: "eZDemoBundle:zone:2zoneslayout1.html.twig"
        2ZonesLayout2:
            name: 2 zones (layout 2)
            template: "eZDemoBundle:zone:2zoneslayout2.html.twig"
        2ZonesLayout3:
            name: 2 zones (layout 3)
            template: "eZDemoBundle:zone:2zoneslayout3.html.twig"
        3ZonesLayout1:
            name: 3 zones (layout 1)
            template: "eZDemoBundle:zone:3zoneslayout1.html.twig"
        3ZonesLayout2:
            name: 3 zones (layout 2)
            template: "eZDemoBundle:zone:3zoneslayout2.html.twig"

    enabledLayouts:
        - GlobalZoneLayout
        - 2ZonesLayout1
        - 2ZonesLayout2
        - 2ZonesLayout3
        - 3ZonesLayout1
        - 3ZonesLayout2
=20
=20
=20
=20
=20
=20
=20

LandingPage FieldType

=20
layouts:
    1:=09
=09=09identifier: 1=09=09=09=09=09=09
        name: One column
        description: 'One column'
        thumbnail: '/bundles/ezstudiodemo/images/layouts/1.png'
        template: eZStudioDemoBundle:layouts:1.html.twig
        zones:
            first:
                name: First zone

    1_2:
=09=09identifier: 1_2=09
=09=09name: Two zones in columns, narrow left, wide right
        description: Two zones in columns, narrow left, wide right
        thumbnail: '/bundles/ezstudiodemo/images/layouts/1_2.png'
        template: eZStudioDemoBundle:layouts:1_2.html.twig
        zones:
            first:
                name: First zone
            second:
                name: Second zone

    1_2__1:=09 =20
=09=09identifier: 1_2__1
        name: Three zones, two columns, narrow left, wide right in first ro=
w and one row
        description: Three zones, two columns, narrow left, wide right in f=
irst row and one row
        thumbnail: '/bundles/ezstudiodemo/images/layouts/1_2__1.png'
        template: eZStudioDemoBundle:layouts:1_2__1.html.twig
        zones:
            first:
                name: First zone
            second:
                name: Second zone
            third:
                name: Third zone
=20
=20
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

The following parameters need to be included in the settings of the default_layouts.yml file:

Parameter Type Description Required

layouts

string Layout config root Yes

number

string Unique key of the layout Yes

{ID}/identifier

string ID of the Layout Yes

{ID}/name

string Name of the Layout Yes

{ID}/description

string Description of Layout Yes

{ID}/thumbnail

string <path> to thumbnail image Yes

{ID}/template

string

<path> to template View

For examp= le:
eZStudioDemoBundle:layouts:1.html.twig

<bundl= e>:<directory>:<file name>

Yes

{ID}/zones

=
string

Collection of zones

Yes
{ID}/{zone}/zone_id string ID of the zone Yes
{ID}/{zone}/name<= /td> string Zone name Yes
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

Conf= iguring Blocks

=20
=20
=20
=20
=20
=20

The configuration of blocks is stored in the default_layouts.yml file with the following structure below:

=20
=20
=20
=20
=20
=20
=20

In eZ Publish/Platform you could configure blocks i= n the FieldType ( DemoBundle / = Resources / config / e= zpage.yml)           = ;            &n= bsp;            = ; 

=20
blocks:
        Campaign: { name: Campaign }
        MainStory: { name: Main story }
        ContentGrid: { name: Content Grid }
        Gallery: { name: Gallery }
        Banner: { name: Banner }
        Video: { name: Video }
        TagCloud: { name: Tag cloud }
        Poll: { name: Poll }
        ItemList: { name: Item list }
        FeedReader: { name: Feed reader }
        FeedbackForm: { name: Feedback Form }
        HighlightedItem: { name: Highlighted Item }

    enabledBlocks:
        - Campaign
        - MainStory
        - ContentGrid
        - Gallery
        - Banner
        - Video
        - TagCloud
        - Poll
        - ItemList
        - FeedReader
        - FeedbackForm
        - HighlightedItem
=20
=20
=20
=20
=20
=20
=20

In eZ Studio you can configure blocks in the LandingPage Field Type ( ezstudio-demo-bundle / Resou= rces / config / default_layouts.yml)  =             &nb= sp;            =       

=20
blocks:
    contentlist:
        views:
            'contentlist':
                'template': 'eZStudioDemoBundle:blocks:contentlist.html.twi=
g'
                'name': 'Studio Demo contentlist'

            'schedule_hero':
                'template': 'eZStudioDemoBundle:blocks:schedule_hero.html.t=
wig'
                'name': 'Studio Demo schedule hero'

    banner:
        views:
            'banner':
                'template': 'eZStudioDemoBundle:blocks:banner.html.twig'
                'name': 'Studio Demo banner'

            'banner_container':
                'template': 'eZStudioDemoBundle:blocks:banner_container.htm=
l.twig'
                'name': 'Studio Demo banner in container div'

    embed:
        views:
            'embed':
                'template': 'eZStudioDemoBundle:blocks:embed.html.twig'
                'name': 'Studio Demo embed block'

            'blog':
                'template': 'eZStudioDemoBundle:blocks:blog.html.twig'
                'name': 'Studio Demo blog block'
=20
=20
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

 

=20
=20
=20
------=_Part_2977_2054126050.1485851491863--