Forums / Developer / Add 3.2 datatype to current 3.1 install?

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>

eZ debug

Timing: Jan 18 2025 14:57:13
Script start
Timing: Jan 18 2025 14:57:13
Module start 'content'
Timing: Jan 18 2025 14:57:14
Module end 'content'
Timing: Jan 18 2025 14:57:14
Script end

Main resources:

Total runtime1.4951 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0114 587.8281180.8281
Module start 'content' 0.01141.3334 768.6563665.5000
Module end 'content' 1.34480.1502 1,434.1563344.4297
Script end 1.4950  1,778.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.2847210.0002
Check MTime0.00150.1029210.0001
Mysql Total
Database connection0.00200.130810.0020
Mysqli_queries1.383792.54792170.0064
Looping result0.00250.16402150.0000
Template Total1.461597.820.7308
Template load0.00210.137420.0010
Template processing1.459597.616920.7297
Template load and register function0.00010.006210.0001
states
state_id_array0.00090.062510.0009
state_identifier_array0.00110.072420.0005
Override
Cache load0.00200.1325850.0000
Sytem overhead
Fetch class attribute can translate value0.00150.098740.0004
Fetch class attribute name0.00150.0993120.0001
XML
Image XML parsing0.00190.126440.0005
class_abstraction
Instantiating content class attribute0.00000.0032190.0000
General
dbfile0.00580.3906340.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs