Hi, I try to edit page templates wth dreamweaver 4. I read Michel Pelletiers HowTo on zope.org, but at the main point I'm really confused. He says: Now, log into your Zope and create a folder called FileLib. In this folder, create a page template called index_html by selecting Page Template from the add menu, specifying the id index_html in the form, and clicking Add. Now, with your editor, save the above HTML to the URL http://your.zope/FileLib/index_html/source.html. Notice that the URL to save the index_html page ends in source.html. Because page templates are dynamic, you need a way to edit the raw source of the template, unrendered by the page template language. Appending source.html to a page template gives you this raw source. My question is, how can I save source.html to /index_html/source.html if index_html is a page template and not a folder? I tried it without success (Zope 2.5.1, win2k pro). Best regards Thomas
I have these questions also. I guess this topic is notvery clear, and another tutorial or article would be great. Thanks, Parra ----- Original Message ----- From: "Thomas" <tom@tonic.de> To: <zope@zope.org> Sent: Sunday, April 14, 2002 7:27 AM Subject: [Zope] page templates and wysiwyg-editors Hi, I try to edit page templates wth dreamweaver 4. I read Michel Pelletiers HowTo on zope.org, but at the main point I'm really confused. He says: Now, log into your Zope and create a folder called FileLib. In this folder, create a page template called index_html by selecting Page Template from the add menu, specifying the id index_html in the form, and clicking Add. Now, with your editor, save the above HTML to the URL http://your.zope/FileLib/index_html/source.html. Notice that the URL to save the index_html page ends in source.html. Because page templates are dynamic, you need a way to edit the raw source of the template, unrendered by the page template language. Appending source.html to a page template gives you this raw source. My question is, how can I save source.html to /index_html/source.html if index_html is a page template and not a folder? I tried it without success (Zope 2.5.1, win2k pro). Best regards Thomas _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--On 14 April 2002 11:44 -0300 Marcello Parra Martins <lista@parra.locaweb.com.br> wrote:
I have these questions also. I guess this topic is notvery clear, and another tutorial or article would be great.
You might try http://www.zope.org/Members/glpb/dwhowto The SSL stuff can be ignored. I tried to get my head round the index_html/source.html approach but failed. I've been meaning to revisit it (and update the above HowTo but no time as yet). Paul
Thanks,
Parra
----- Original Message ----- From: "Thomas" <tom@tonic.de> To: <zope@zope.org> Sent: Sunday, April 14, 2002 7:27 AM Subject: [Zope] page templates and wysiwyg-editors
Hi,
I try to edit page templates wth dreamweaver 4. I read Michel Pelletiers HowTo on zope.org, but at the main point I'm really confused. He says:
Now, log into your Zope and create a folder called FileLib. In this folder, create a page template called index_html by selecting Page Template from the add menu, specifying the id index_html in the form, and clicking Add. Now, with your editor, save the above HTML to the URL http://your.zope/FileLib/index_html/source.html. Notice that the URL to save the index_html page ends in source.html. Because page templates are dynamic, you need a way to edit the raw source of the template, unrendered by the page template language. Appending source.html to a page template gives you this raw source. My question is, how can I save source.html to /index_html/source.html if index_html is a page template and not a folder? I tried it without success (Zope 2.5.1, win2k pro). Best regards Thomas
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/
On Sun, Apr 14, 2002 at 04:18:18PM +0100, Paul Browning wrote: I tried to get my head round the index_html/source.html approach
but failed. I've been meaning to revisit it (and update the above HowTo but no time as yet).
It "looks like" you're accessing a file in a directory, but you're not. Forget about that. Remember that in Zope, paths refer to methods or attributes of objects, not to files in directories. So a Zope document (ZPT or DTML) is actually an object that's located as an attribute of a Folder object; but Folders aren't the only objects that can have attributes. In this case, I think that Zope maps the URL "index_html/source.html" to something like "the source.html attribute of the index_html object". As for why it's not working, sorry, I haven't tried this myself... -- Paul Winkler home: http://www.slinkp.com "Muppet Labs, where the future is made - today!"
participants (4)
-
Marcello Parra Martins -
Paul Browning -
Paul Winkler -
Thomas