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.

eZ debug

Timing: Jan 18 2025 18:18:20
Script start
Timing: Jan 18 2025 18:18:20
Module start 'layout'
Timing: Jan 18 2025 18:18:20
Module start 'content'
Timing: Jan 18 2025 18:18:20
Module end 'content'
Timing: Jan 18 2025 18:18:20
Script end

Main resources:

Total runtime0.8929 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0313152.6406
Module start 'layout' 0.00530.0030 740.671939.4766
Module start 'content' 0.00830.8830 780.1484660.4063
Module end 'content' 0.89130.0016 1,440.554724.1250
Script end 0.8929  1,464.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3440160.0002
Check MTime0.00130.1481160.0001
Mysql Total
Database connection0.00060.070010.0006
Mysqli_queries0.809690.6698800.0101
Looping result0.00060.0711780.0000
Template Total0.859196.220.4295
Template load0.00240.266920.0012
Template processing0.856795.939620.4283
Template load and register function0.00010.010410.0001
states
state_id_array0.00230.252910.0023
state_identifier_array0.00090.099420.0004
Override
Cache load0.00220.2504850.0000
Sytem overhead
Fetch class attribute can translate value0.00070.078430.0002
Fetch class attribute name0.00120.1295120.0001
XML
Image XML parsing0.00110.127530.0004
class_abstraction
Instantiating content class attribute0.00000.0038190.0000
General
dbfile0.00110.1189230.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs