Add 3.2 datatype to current 3.1 install?

Author Message

Alex Jones

Wednesday 16 July 2003 2:43:22 pm

Is is possible to plug in the new Matrix datatype into an existing 3.1 installation? I know there would be soem issues with the search engine, but that doesn't concern me at present as we will be making use of an external search engine.

If it is possible, what steps do I need to follow to install it? I'm on a major time crunch and could really use some help. :)

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bård Farstad

Wednesday 16 July 2003 2:47:13 pm

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.

Probably something that I've missed though.

--bård

Documentation: http://ez.no/doc

Alex Jones

Thursday 17 July 2003 6:00:51 am

Thanks! I'm going to try this right now. :)

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Thursday 17 July 2003 6:16:53 am

How do I enable the datatype in the site.ini? Do I need to add it as an extension or a template setting?

Sorry if I am missing something obvious.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bård Farstad

Thursday 17 July 2003 6:25:53 am

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[]

AvailableDataTypes[]=ezstring
AvailableDataTypes[]=eztext
AvailableDataTypes[]=ezxmltext
AvailableDataTypes[]=ezdate
AvailableDataTypes[]=ezdatetime
AvailableDataTypes[]=eztime
AvailableDataTypes[]=ezboolean
AvailableDataTypes[]=ezinteger
AvailableDataTypes[]=ezfloat
AvailableDataTypes[]=ezenum
AvailableDataTypes[]=ezobjectrelation
AvailableDataTypes[]=ezobjectrelationlist
AvailableDataTypes[]=ezimage
AvailableDataTypes[]=ezbinaryfile
AvailableDataTypes[]=ezmedia
AvailableDataTypes[]=ezauthor
AvailableDataTypes[]=ezurl
AvailableDataTypes[]=ezemail
AvailableDataTypes[]=ezoption
AvailableDataTypes[]=ezprice
AvailableDataTypes[]=ezuser
AvailableDataTypes[]=ezisbn
AvailableDataTypes[]=ezkeyword
AvailableDataTypes[]=ezsubtreesubscription
AvailableDataTypes[]=ezmatrix

--bård

Documentation: http://ez.no/doc

Alex Jones

Thursday 17 July 2003 6:37:13 am

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>When in doubt, clear the cache.</i>

Alex Jones

Thursday 17 July 2003 6:51:06 am

Actually, I think I figured it out. I had to copy the templates over from design/standard/templates/content/datatype

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Jerry Jalava

Thursday 17 July 2003 11:09:37 am

Hi,

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...

Thanks,
Jerry

Alex Jones

Thursday 17 July 2003 11:58:06 am

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 ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Friday 18 July 2003 6:05:59 am

Any ideas?

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.