-
1. Re: What type of extension would this be?
Randy Edmunds Jul 22, 2010 10:00 AM (in response to ac361)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
-
2. Re: What type of extension would this be?
ac361 Jul 23, 2010 9:04 AM (in response to Randy Edmunds)Thanks, Randy. I'm still looking for examples of how to do this extension and best practices.
-
3. Re: What type of extension would this be?
Randy Edmunds Jul 24, 2010 4:29 PM (in response to ac361)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
-
4. Re: What type of extension would this be?
ac361 Jul 25, 2010 3:38 PM (in response to Randy Edmunds)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.
-
5. Re: What type of extension would this be?
Randy Edmunds Jul 25, 2010 4:53 PM (in response to ac361)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
-
6. Re: What type of extension would this be?
Randy Edmunds Jul 25, 2010 5:05 PM (in response to Randy Edmunds)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
-
7. Re: What type of extension would this be?
ac361 Jul 25, 2010 5:53 PM (in response to Randy Edmunds)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.
-
8. Re: What type of extension would this be?
Randy Edmunds Jul 25, 2010 6:02 PM (in response to ac361)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
-
9. Re: What type of extension would this be?
ac361 Jul 25, 2010 6:08 PM (in response to Randy Edmunds)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
-
10. Re: What type of extension would this be?
Randy Edmunds Jul 25, 2010 6:11 PM (in response to ac361)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
-
11. Re: What type of extension would this be?
ac361 Jul 25, 2010 6:16 PM (in response to Randy Edmunds)Thanks. For now, I'll use the great documentation for the CS4 version.


