Forums / Developer / Creating a new media player type

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Creating a new media player type

Author Message

Stephen Martin

Wednesday 21 June 2006 2:03:29 pm

Hello,

I'm attempting to use Exponential 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 Exponential.

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 Exponential 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}