Adding a button to the matrix attribute

Author Message

Kedar Deshpande

Wednesday 28 October 2009 7:07:35 am

Hi,

I have a matrix with two columns, a name and image. What I need to have is a button (or anything really) that will pop-up a window listing the available images contained in an external database and when one is clicked, the url is returned back to the image column field of the matrix. This should be an option for each row and all this when the editorial creates an object in ez.

I have this running on other templates where a text field is displayed with a button next to it. Javascript runs and the pop-up shown etc.

Is there anyway to make it work for the ezmatrix?

thanks,
Kedar

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 15:07:46
Script start
Timing: Jan 18 2025 15:07:46
Module start 'layout'
Timing: Jan 18 2025 15:07:46
Module start 'content'
Timing: Jan 18 2025 15:07:47
Module end 'content'
Timing: Jan 18 2025 15:07:47
Script end

Main resources:

Total runtime1.4801 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.0313152.6406
Module start 'layout' 0.00570.0038 740.671939.4766
Module start 'content' 0.00951.4693 780.1484400.1797
Module end 'content' 1.47880.0013 1,180.32818.1406
Script end 1.4801  1,188.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2271160.0002
Check MTime0.00130.0896160.0001
Mysql Total
Database connection0.00100.066610.0010
Mysqli_queries1.428396.5021460.0311
Looping result0.00070.0449440.0000
Template Total1.430696.720.7153
Template load0.00190.127620.0009
Template processing1.428796.528620.7144
Template load and register function0.00020.010910.0002
states
state_id_array0.00280.187410.0028
state_identifier_array0.00190.130620.0010
Override
Cache load0.00150.102390.0002
Sytem overhead
Fetch class attribute can translate value0.00160.108810.0016
Fetch class attribute name0.00070.046810.0007
XML
Image XML parsing0.00010.007610.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00630.4265100.0006
String conversion0.00000.000640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs