Magento

eCommerce Software for Online Growth

Working with PHTML and Dreamweaver

Last modified by Little Creek on Thu, September 18, 2008 16:58
Source|Old Revisions  

For those who use or may want to use Dreamweaver for editing or creating PHTML files within Magento, this article is for you. To get Dreamweaver to recognize the .phtml extension and treat these files as if they are a php file you will need locate and edit the following 2 files.

1: Locate Extensions.txt and MMDocumentTypes.xml files. Depending on what operating system you use, I would suggest that you read the original KB at the Adobe Knowledge Base to locate these files.

2: Open Extensions.txt and add PHTML to lines 1 and 16;

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

PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files

3: Now add phtml to MMDocumentTypes.xml on line 75;

<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5,phtml” macfileextension=”php,php3,php4,php5,phtml” file=”Default.php” writebyteordermark=”false”>

Now when you open a .phtml file in Dreamweaver it will treat it as a PHP file with the correct code syntax highlighting.




 

Magento User Guide

Magento Enterprise Available now

Professional Services from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177671 users|1145 users currently online|277237 forum posts