For example, if you use the trash can icon in the Snippets panel to delete a Snippets folder
called javascript and a file called onepixelborder.csn, Dreamweaver writes a file in the user
Configuration folder called mm_deleted_files.xml, which looks like the following example:
<?xml version = "1.0" encoding="utf-8" ?>
<deleteditems>
<item name="snippets/javascript/" />
<item name="snippets/html/onepixelborder.csn" />
</deleteditems>
As Dreamweaver populates the Snippets panel, it reads all the files in the user's Configuration/
Snippets folder and all the files in the Dreamweaver Configuration/Snippets folder, except the
Configuration/Snippets/javascript folder and the Configuration/Snippets/html/
onepixelborder.csn file, and it adds the resulting list of files to the Snippets panel list.
If a C-level extension calls the
Files/Macromedia/Dreamweaver/Configuration/Snippets/javascript/onepixelborder.csn URL,
it returns a value of
false
dw.getDocumentDom("file:///c|Program Files/Macromedia/Dreamweaver/
Configuration/Snippets/javascript/onepixelborder.csn")
You can modify the mm_deleted_files.xml file to prevent Dreamweaver from showing files in
the user interface, such as objects, canned content in the new dialog box, and so on. You can
call the
MM_DeleteConfigfile()
JS_Object MM_GetConfigFolderList()
Availability
Dreamweaver MX.
Description
This function gets a list of files, folders, or both for the specified folder. If you specify a
configuration folder, the function gets a list of the folders that exists in both the user
Configuration folder and the Dreamweaver Configuration folder, subject to filtering by the
mm_deleted_files.xml file.
Arguments
char *fileURL, char *constraints
The
char *fileUrl
want a list of the contents. The string must have the format of a file:// URL. The function
accepts valid wildcard characters of asterisks (*) and question marks (?) in the file:// URL
string. Use asterisks (*) to represent one or more unspecified characters, and question
marks (?) to represent a single unspecified character.
472
C-Level Extensibility
MM_ConfigFileExists()
. Likewise, if a JavaScript extension tries to call
function to add file paths to the mm_deleted_files.xml file.
argument is a pointer to a string that names the folder for which you
function for the file:///c|Program
, it returns a
value.
null
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?