Closed maczuk closed 3 years ago
This is definitely not helped by the fact that there are 2 separate implementations of the 'ezmatrix' field type:
Implemented. Will be in 5.14
@gggeek How do I have to define the columns?
I tried it the way @maczuk described it in the beginning of this issue but it didn't work. The ezmatrix fieldtype is created, but the columns definition is not taken into account.
Do you have a working example?
Thanks in advance :-)
@homarx is it correct that you want to define an ezmatrix fieldtype with column defs, without (or before) creating any such content? Also: which version of the matrix bundle (and eZ) are you using?
@gggeek Thanks for your fast reply! Correct, I tried to create a new content type with an ezmatrix field.
The versions are: ezsystems/ezpublish-kernel v7.5.13 kaliop/ezmigrationbundle 5.15.0
And this is the field definition in migration file:
-
type: ezmatrix
name: Answer
identifier: answer
columns:
- { "name": "Answer", "identifier": "answer"}
required: false
searchable: true
info-collector: false
disable-translation: false
category: default
position: 5
@gggeek I just realized that there is a typo in your docs: ezmigrationbundle/Resources/doc/DSL/ContentTypes.yml (line 37)
This is the description of the ezmatrix config not the ezmedia one.
As I am using the community version of ezplatform, columns and minimum_rows are not wrking for me ...
Thanks for the notice, I have fixed the docs. I guess that this ticket can stay 'closed' then ;-)
Can you confirm, that the configuration for columns and minimum_rows is not working for the community version?
Yes - it is sadly a problem of the legacy matrix fieldtype storing its definition in a way that makes it incompatible with the eZ5 api.
But I am using ezp 2.5 ?!? Shouldn't it work with it?
Add support for defining columns for example:
Content Type Migration:
Content Item Migration:
Thanks!