Chris -

Thanks for your help.  At the time you sent it, I thought I didn't need it
(because I had learned how to use PUT_FACTORY to get Zope to accept .htm
extensions as ZPTs) - but now I do.  

And it works fine, except for the one more thing it turns out I really need:
to have DW recognize files with NO extension as HTML pages.  The reason I
need this is that Python insists on treating "mypage.html" as the "html"
attribute of a "mypage" object (which of course it can't find) rather than
as a reference to an object named "mypage.html".  

I have tried every syntax I can think of to designate an empty string in
those configuration files ('', "", and just an empty entry in the list).
But in all cases, when I rename a file (in DW) from "mypage.html" to
"mypage_html" and then try to open it, DW says "Can't find a valid editor
for this file extension."

Any suggestions?

- Thanks, Ken


> -----Original Message-----
> From: Chris Beaven [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 09, 2005 9:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: DreamWeaver files -> ZPTs: How?
> 
> 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,XS
> LT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,T
> XT,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,XS
> LT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,DTM,D
> TML,TLD,TXT,PHP,PHP3,PHP4,PHP5,PT,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JA
> VA,EDML,WML,ZPT:All
> Documents
> 
> 
> 
> Add these lines (After "...:HTML Documents" line is good):
> 
> DTM,DTML:Zope DTML Documents
> PT,ZPT:Zope Page Templates


_______________________________________________
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt

Reply via email to