Template Directory Relationship

February 1, 2001 by tom
I have a few content providers that know nothing about web development, nor
care to learn.
Is it possible to extend dreamweaver, so when a person saves a file in a
specific directory a template will automatically be applied to that file
without human interaction?
Moreover, I would like to have a template/directory relationship. If a
directory has sub-directories, the sub-directories would all have separate
templates for them.

can this be done?

~tjk~

RE: Template Directory Relationship

February 3, 2001 by George Petrov

Sure this can be done!

You can programmatically apply templates. For example just before the user saves the current document in DW then you can have your own javascript running. From there you can automatically apply a template, so when the document is saved, it is saved with the new template.

Note that all your users should use DW or UD to save their documents.
If you know more about extensions, you can write one and place it in:

dreamweaver_dir/configuration/commands/myautotemplate_beforeSave.htm

Then the onLoad handler on your form in the file above will be executed on each document save. I'm using a simular construction for the Pure ASP File Upload Extension.

something the mac users can do--

March 25, 2002 by nospam nospam
Mac users can download a handy app from http://www.chaoticsoftware.com/ProductPages/Manipulator.html that lets the mac user make a "droplet" that will change the file type and creator of the unrecognized file. Afterwards, the file has the EM icon, and will open the EM when clicked. I've got one created, and keep it in my d'loaded extensions folder. I'd offer the droplet but the software is shareware and people who use the droplets should register it for $20 bucks. If any mac users don't understand how to use this, they can email me at blu@formdude.com with questions. the type and creator codes for .mxp files: type: MMXP creator: MmXm