The matrix datatype should work on 3.1, if you don't care about the search. What you need to do is to copy the datatype from kernel/classes/datatypes/ezmatrix/*. Then you need to enable the datatype, this is done in site.ini.
The matrix datatype should not need any other modifications to 3.1.
it's actually just to add it to the array in content.ini ( guess it's a long time since it was in site.ini ;) :
[DataTypeSettings]
# A list of directories to check for datatypes
RepositoryDirectories[]=kernel/classes/datatypes
# A list of extensions which have content object datatypes
# It's common to create a settings/content.ini.append file
# in your extension and add the extension name to automatically
# get datatypes from the extension when it's turned on. ExtensionDirectories[]
Hrrrm, I uploaded the matrix, cleared the ini cache and saw that the matrix datatype was added to the drop-down list. But, when I added a matrix to a test content class, all it does is display the name of the matrix field. It doesn't display any fields for the editor to type into.
When adding the datatype to the content class itself the only fields available were "Name" and "Indentifier".
Thoughts?
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
I'm just curious, what kind of issues does it make with search engine if I install this Matrix datatype? If it's only that the matrix datatype isn't included in search but everything else works, then I might give it a try...
Jerry: I'm not sure what the problem is as I haven't gotten far enough in developing it to test the search engine with the Matrix datatype.
Bård: I have copied the Matrix datatype to begin experimenting with a custom version. What changes would need to be made to have pre-defined rows displayed to the editor?
Thanks again!
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]