Dreamweaver MX

You can edit .tpl files in wysiwyg mode by changing the following setting:

  1. Open the following xml document in an editor: Macromedia/Dreamweaver MX/Configuration/DocumentTypes/MMDocumentTypes.xml
  2. In the tag "documenttype id="HTML"... "(or php) add .tpl as an extension in winfileextension/macfilextension..
  3. Open any .tpl file in Dreamweaver and you can edit them in the wysiwyg mode...

The style sheet links and other links that contain code don't work of course... Somebody else?

There is a work-around for style sheets: In DW MX, you can select one or "design time style sheets". Those will be used, while you are in wysiwyg-mode. Works like this: Open the template, that you want to edit (ie. pagelayout for a section), display the stylesheet window, use the menu in the top-right corner of the stylesheet window and select the CSS's you want. See the source code of the .tpl to check, which css are needed (probably "core.css" and one for your section). This helps a bit. See Macromedia's site for details.

You can edit .log and .append files in code-view (w/o being prompted for an external editor) by:

  1. Same as Step 1 above
  2. In the tag "documenttype id="Text"... add "log,append" as extensions in winfileextension/macfilextension.
  3. Run Dreamweaver. Go to Edit >> Preferences
  4. Choose the File Types/Editors category the then click the left-hand plus button to add an extension
  5. Type "log, append" then click "Ok"

Comments

Had to change another file

I had to do two extra things to get this to work.

#1. I had to edit:

C:\Documents and Settings\[USER]\Application Data\Macromedia\Dreamweaver MX\Configuration\Extensions.txt

This is a text file, I added TPL in these two lines:

HTM,HTML,TPL,SHTM,SHTML,HTA,HTC,STM,SSI,JS,AS,XML,XSL,XSD,DTD,XSLT,LBI,DWT,ASP,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,LASSO,JSP,VB,VTM,VTML,INC,JAVA,EDML,WML:All Documents
HTM,HTML,TPL,HTA,HTC:HTML Documents

#2. I had to restart Dreamweaver for the changes to take effect.

Opening .tpl template files from within Dreamweaver MX

Hint: To automatically open your .tpl files in DW's editor when you click a template file in the docked File list, do the same as for .log and .append files (as stated above), and add .tpl to Open in Code View.

Log in or create a user account to comment.

Contents

Customization

Access control
Exponential API Documentation
Content structure
Custom design
Components
Tips & Tricks
    Debugging templates
    Javascript in templates
    Fetching current user
    Showing related objects
    Show which templates are used
    Fetching the ID of the parent
    One Article Folder
    Creating tree menus
    How can I use my own php script insid...
    Hiding attribute content
    Splitting an article over several pages
    Accessing section id in pagelayout
    List articles in folder
    Creating nice URLs
    Alt tag on images
    Improve the pagelayout.tpl
    Clean HTML tags
    Insert javascript call inside ezpub d...
    3rd party applications
       Dreamweaver MX
       GoLive 6
    Fetch Function examples
    Display more than 15 items on your co...
    Including PHP files in templates
    Redirecting after content publishing
    HowTo see if article has an image
    Date and Time Formats
    Forms processing example: store user...
    Adjust Timezone
    Adding a Remove Button/Image
    Find the age in years for an object
    Editing, creating and removing conten...
    Indexing binary files with IFilters o...
Troubleshooting


Created

28/04/2003
11:34:51 pm
by Niklas Gunn�s

Last updated

04/07/2003
4:12:58 pm
by B�rd Farstad

Authors

Niklas Gunn�s
Marco Zinn
B�rd Farstad



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.