eZ Community » Forums » eZ Platform » Ezstudio block
expandshrink

Ezstudio block

Ezstudio block

Wednesday 20 September 2017 3:29:44 pm

Hello,

in ezstudio I would like to create a new block with 2 fields:

  • a  string 
  • a locationlist field (as in the block collection)

here is my code : 

 

public function createBlockDefinition()    {       

return new BlockDefinition(           

'slideshow',           

'Slideshow',           

'default',           

'bundles/ezsystemslandingpagefieldtype/images/thumbnails/collection.svg',

         [],           

[               

new BlockAttributeDefinition(                   

'locationlist',                   

'Location list',                   

'locationlist',                   

'',                   

'Choose location items',                   

true,                   

false,                   

[],                   

['match' => $this->getViewMatchConfiguration()]               

),               

new BlockAttributeDefinition(                   

'legende',                   

'Légende',                   

'string',                   

'',                   

'Required'               

),           

]       

);   

}

I see my block but the field location list does not appear in the back office .

 

Do you have an idea ?

Modified on Wednesday 20 September 2017 3:47:27 pm by patrice brun

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from