DreamWeaver files -> ZPTs: How?
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. - Thanks, Ken
-----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-----
-----Original Message----- From: Tres Seaver [mailto:tseaver@palladion.com] Sent: Monday, May 09, 2005 3:23 PM To: ken@sunward.org 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.
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
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
participants (4)
-
Chris Beaven -
Ken Winter -
S.Hayles -
Tres Seaver