Forums / Install & configuration / Matrix Data Type (help needed)

Matrix Data Type (help needed)

Author Message

Jorge estévez

Sunday 01 August 2004 8:56:55 pm

I wanted to modify the Company and person class...

I started to look at the class and found that when the matrix data type is used and the Id takes the name of "company_address" or "contact_information" then the user is asked for "Postal address / Visitor Address" or "phone / fax / email etc."

Please tell me wich are the ID available to the different options that can be used and how to add new options to the matrix ID...

Tell me where can I find more information about the Matrix DataType...

thanks, joe

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Francisca Hernández

Monday 02 August 2004 4:00:02 pm

hello Joe,

The options for "company_address" and "contact_information" are defined in content.ini

[MatrixComponentSettings]
CompanyAddress[]
CompanyAddress[]=Postal Address
CompanyAddress[]=Visitor Address

PersonContactInfo[]
PersonContactInfo[]=Phone
PersonContactInfo[]=Fax
PersonContactInfo[]=Email
PersonContactInfo[]=Homepage
PersonContactInfo[]=IM address

CompanyContactInfo[]
CompanyContactInfo[]=Phone
CompanyContactInfo[]=Fax
CompanyContactInfo[]=Email
CompanyContactInfo[]=Homepage

You have to create an override file for content.ini in settings/override/content.ini.append.php
or in settings/siteaccess/admin/content.ini.append with additional data.

thanks, fran

Iguana IT, SL - http://www.iguanait.com

Jorge estévez

Tuesday 03 August 2004 4:42:17 am

thanks, Ill give it a try....

But how do I triger to activate each block of options

eg. company_address" "contact_information

Wen adding the ID to one of the examples above then the:

CompanyAddress[]=Postal Address
CompanyAddress[]=Visitor Address

or

PersonContactInfo[]=Phone
PersonContactInfo[]=Fax
PersonContactInfo[]=Email
PersonContactInfo[]=Homepage
PersonContactInfo[]=IM address

activates itself

How do I achieve this (how do I relate the ID with each block of options

thanks
joe

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

eZ debug

Timing: Jan 19 2025 12:48:16
Script start
Timing: Jan 19 2025 12:48:16
Module start 'content'
Timing: Jan 19 2025 12:48:17
Module end 'content'
Timing: Jan 19 2025 12:48:17
Script end

Main resources:

Total runtime0.8952 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0703180.8281
Module start 'content' 0.00700.7673 769.8984539.9219
Module end 'content' 0.77420.1209 1,309.8203332.7578
Script end 0.8951  1,642.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4721210.0002
Check MTime0.00160.1733210.0001
Mysql Total
Database connection0.00090.104310.0009
Mysqli_queries0.815291.06471940.0042
Looping result0.00180.20491920.0000
Template Total0.865896.720.4329
Template load0.00220.250920.0011
Template processing0.863596.462020.4318
Template load and register function0.00020.020210.0002
states
state_id_array0.00090.100310.0009
state_identifier_array0.00130.139620.0006
Override
Cache load0.00190.2079260.0001
Sytem overhead
Fetch class attribute can translate value0.00180.196530.0006
Fetch class attribute name0.00160.177140.0004
XML
Image XML parsing0.00280.315430.0009
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00630.7047270.0002
String conversion0.00000.000830.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs