Creating a new media player type

Author Message

Stephen Martin

Wednesday 21 June 2006 2:03:29 pm

Hello,

I'm attempting to use EzPublish 3.8.0 to content manage CAD drawings (DWF files). I've successfully created the class I need to do so however I'm stuck on one point and that is creating a new media type to support the DWF file.

It appears as if I need to create a new media player type as I want to use a plugin called AutoDesk DWF Viewer to display the CAD drawings in EzPublish.

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=2404513&CMP=ILC-GN9219645015

I've taken a look at the ezmediatype.php file in kernel>classes>ezmedia but I'm not sure how to proceed. Could someone please point me in the correct direction?

Thanks!

Stephen Martin

Monday 26 June 2006 1:00:03 pm

Following up. I've abandoned the idea of creating a new media player type and have placed th e controls for the file in the template.

The remaining question is how do I get EzPublish to output the file path? Right now it's giving me the anchor link and file site when I really just need the path to the file:

{$node.object.data_map.cad_drawing}

A point in the correct direction is greatly appreciated.

Thanks

Stephen Martin

Monday 26 June 2006 1:41:14 pm

So, it just needed to be this:

{$node.object.data_map.cad_drawing.content.filepath}

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 11:13:59
Script start
Timing: Jan 18 2025 11:13:59
Module start 'layout'
Timing: Jan 18 2025 11:13:59
Module start 'content'
Timing: Jan 18 2025 11:14:00
Module end 'content'
Timing: Jan 18 2025 11:14:00
Script end

Main resources:

Total runtime0.7636 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.0391152.6250
Module start 'layout' 0.00650.0040 741.664139.4453
Module start 'content' 0.01050.7516 781.1094434.1250
Module end 'content' 0.76200.0016 1,215.23448.1563
Script end 0.7636  1,223.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4430160.0002
Check MTime0.00140.1806160.0001
Mysql Total
Database connection0.00160.213810.0016
Mysqli_queries0.716493.8194550.0130
Looping result0.00090.1119530.0000
Template Total0.725795.020.3629
Template load0.00230.296120.0011
Template processing0.723594.741520.3617
Template load and register function0.00040.047510.0004
states
state_id_array0.00110.139710.0011
state_identifier_array0.00110.140020.0005
Override
Cache load0.00190.2449180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076010.0006
Fetch class attribute name0.00140.187530.0005
XML
Image XML parsing0.00010.013810.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00060.0798100.0001
String conversion0.00000.001140.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs