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

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 19 2025 01:21:26
Script start
Timing: Jan 19 2025 01:21:26
Module start 'layout'
Timing: Jan 19 2025 01:21:26
Module start 'content'
Timing: Jan 19 2025 01:21:28
Module end 'content'
Timing: Jan 19 2025 01:21:28
Script end

Main resources:

Total runtime1.4691 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 590.3906152.6406
Module start 'layout' 0.00780.0044 743.031339.4766
Module start 'content' 0.01221.4552 782.5078534.8281
Module end 'content' 1.46740.0016 1,317.335912.1484
Script end 1.4691  1,329.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2276160.0002
Check MTime0.00140.0925160.0001
Mysql Total
Database connection0.00100.065310.0010
Mysqli_queries1.412596.1450570.0248
Looping result0.00090.0599550.0000
Template Total1.426497.120.7132
Template load0.00180.124220.0009
Template processing1.424696.971320.7123
Template load and register function0.00020.011410.0002
states
state_id_array0.00080.055210.0008
state_identifier_array0.00170.114520.0008
Override
Cache load0.00150.1014260.0001
Sytem overhead
Fetch class attribute can translate value0.00110.072620.0005
Fetch class attribute name0.00120.083140.0003
XML
Image XML parsing0.00220.150720.0011
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00260.1799160.0002
String conversion0.00000.000840.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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