Copy link to clipboard
Copied
Hi. I'm building an extension that will allow the user to insert an HTML5 video tag on the page along with a JavaScript script tag pointing to a library file. Here's what the user needs to be able to do:
Would this be of the Behavior extension type or of the Insert type? I'm trying to look for a tutorial that will help in creating this. If someone knows of an extension tutorial for something similar to what I'm trying to create here, that will be much appreciated. Thanks.
Copy link to clipboard
Copied
Hi. I'm building an extension that will allow the user to insert an HTML5 video tag on the page along with a JavaScript script tag pointing to a library file.
Inserting an object is an Insert type extension. Behavior type extensions apply a behavior to an existing object.
HTH,
Randy
Copy link to clipboard
Copied
Thanks, Randy. I'm still looking for examples of how to do this extension and best practices.
Copy link to clipboard
Copied
I'm still looking for examples of how to do this extension and best practices.
Be sure to start by looking in the Configuration/Objects folder for examples of how DW builtin objects are defined.
HTH,
Randy
Copy link to clipboard
Copied
Thanks, Randy. Where do the custom extensions get installed? I just installed the Easy Player extension but can't figure out where the files are for it. I want to look at the files as they are in Dreamweaver to see how this extension works. Thank you.
Copy link to clipboard
Copied
Where do the custom extensions get installed?
The first thing you need to know about extending Dreamweaver is the difference between the Application Configuration folder (where DW config files are installed) and the User Configuration folder (where new config files are added and standard files are overridden). See this TechNote for more info:
http://kb2.adobe.com/cps/164/tn_16420.html
Note that this TechNote is old (sorry, I could not find an up-to-date one), but the concepts still apply.
To answer your question, look in the User Configuration folder in the Extensions sub-folder. There will be a .mxi file for every installed extension. This file lists all of the changes made by the extension. You'll need to create one of these when you're done developing your extension and want to package it for distribution.
HTH,
Randy
Copy link to clipboard
Copied
Note that this TechNote is old (sorry, I could not find an up-to-date one), but the concepts still apply.
I found this updated one:
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7f72a.html
Randy
Copy link to clipboard
Copied
Thanks again, Randy. Can we use jQuery inside an extension? For example, if you want to access a specific element by ID in an extension, you can use $("#myElement") in jQuery; or can we only use basic JavaScript? Thanks.
Copy link to clipboard
Copied
Can we use jQuery inside an extension? For example, if you want to access a specific element by ID in an extension, you can use $("#myElement") in jQuery; or can we only use basic JavaScript?
The DOM and JS API that DW provides for writing extensions is a subset of that available in browsers, so I suspect you'll eventually run into problems, but it's worth a try. If not, you can probably tweak jQuery to get it to work in DW. Please let us know if it works because I suspect that many other extension authors would like to try it.
Randy
Copy link to clipboard
Copied
Thanks, Randy. I'm sure there'll be more questions as I progress with the development of this extension. By the way, I've tried to locate a CS5 version of "Extending Dreamweaver" documentation, but there doesn't seem to be one. Is the CS4 docs the latest and greatest? Thanks again for all your help
Copy link to clipboard
Copied
I've tried to locate a CS5 version of "Extending Dreamweaver" documentation, but there doesn't seem to be one.
The CS5 docs are being finished up and will be posted soon.
Randy
Copy link to clipboard
Copied
Thanks. For now, I'll use the great documentation for the CS4 version.