Forums / Developer / Creating a new media player type
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!
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
Monday 26 June 2006 1:41:14 pm
So, it just needed to be this:
{$node.object.data_map.cad_drawing.content.filepath}