Re: [Zope] Re: DreamWeaver files -> ZPTs: How?
On Mon, 9 May 2005, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ken Winter wrote: > > Is there any way to configure Zope so that a *.htm file newly created in DW, > > when uploaded for the first time to Zope, would be created as a ZPT instead > > of as a DTML document? > > > > > > > > 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. To get Dreamweaver to recognise other file extensions, see the TechNote: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16410 Steven ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] 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: To: 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 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: DreamWeaver files -> ZPTs: How?
> -Original Message- > From: Tres Seaver [mailto:[EMAIL PROTECTED] > Sent: Monday, May 09, 2005 3:23 PM > To: [EMAIL PROTECTED] > Subject: Re: DreamWeaver files -> ZPTs: How? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ken Winter wrote: > > Is there any way to configure Zope so that a *.htm file newly created in > DW, > > when uploaded for the first time to Zope, would be created as a ZPT > instead > > of as a DTML document? > > > > > > > > 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. > > > > > > > > I know you can do this by manually creating an empty ZPT in Zope, then > > uploading the already created contents of the same-named .htm file using > the > > ZMI, but this is clunky and error-prone. > > Google for 'PUT_factory'. Tres - That was the clue I needed! Thanks - Ken > > Tres. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: DreamWeaver files -> ZPTs: How?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken Winter wrote: > Is there any way to configure Zope so that a *.htm file newly created in DW, > when uploaded for the first time to Zope, would be created as a ZPT instead > of as a DTML document? > > > > 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. > > > > I know you can do this by manually creating an empty ZPT in Zope, then > uploading the already created contents of the same-named .htm file using the > ZMI, but this is clunky and error-prone. Google for 'PUT_factory'. Tres. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCf7ib+gerLs4ltQ4RArmhAKCVCJsycis6ZqRhqaaoHrYksNSonwCfXe0d TSIZFKuQmrpXm0ErCn8v9rQ= =OxwE -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )