[Zope] Re: DreamWeaver files -> ZPTs: How?

Chris Beaven chris at d-designz.co.nz
Mon May 9 21:40:33 EDT 2005


Ken Winter wrote:
> 
> I know you can do it by naming the file in DW with the *.pt extension.  
> But the trouble with this is, subsequently DreamWeaver doesn’t recognize 
> it as anything that it can edit.
> 

Here's how to make DW work with pt, zpt, dtm and dtml extensions

####
Open "Program Files\Macromedia\Dreamweaver MX 
2004\Configuration\DocumentTypes\MMDocumentTypes.xml"
####

Change:
	<documenttype id="HTML" internaltype="HTML" 
winfileextension="htm,html,shtml,shtm,stm,tpl,lasso,xhtml" 
macfileextension="htm,html,shtml,shtm,tpl,lasso,xhtml" 
file="Default.html" writebyteordermark="false">
To:
	<documenttype id="HTML" internaltype="HTML" 
winfileextension="htm,html,shtml,shtm,stm,tpl,lasso,xhtml,pt,zpt" 
macfileextension="htm,html,shtml,shtm,tpl,lasso,xhtml,pt,zpt" 
file="Default.html" writebyteordermark="false">



####
Open "Documents and Settings\{USERNAME}\Application 
Data\Macromedia\Dreamweaver MX 2004\Configuration\Extensions.txt"
####

Add the first line from:

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,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML:All 
Documents

To:

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,DTM,DTML,TLD,TXT,PHP,PHP3,PHP4,PHP5,PT,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML,ZPT:All 
Documents



Add these lines (After "...:HTML Documents" line is good):

DTM,DTML:Zope DTML Documents
PT,ZPT:Zope Page Templates



More information about the Zope mailing list