Hi! We´re thinking about using Zope for our University website. Now we face following problem: We need a simple solution for people who don´t want to care about DTML to publish their documents using Composer or similar WYSIWYG tools. These documents should be rendered with some standard HTML-code (navigation and the like). Is there any possibility to do this without having to teach everyone <dtml-var> etc.? We tested various things (access rules) but in the best case we end up with nested <html> tags. Unfortunately, we have no python experts here and we´re not learning fast enough to present a solution within time. Some background info: we have to ensure that virtually erveryone here has a simple way to put information on the net. Most of these people have little or no HTML knowledge but use Composer, HotMetal or even word to create their documents. So it seems unacceptable to our bosses to bother anyone with manipulating sources. We would really like to use Zope because of its great management features, user management and expandibility (and its price ;-), so any hints would be highly appreciated. Chris -- Webteam der Uni Bielefeld mailto:webteam@uni-bielefeld.de
Moin User! User Webteam schrieb am Montag, den 11. Oktober 1999:
Hi!
We´re thinking about using Zope for our University website. Now we face following problem: We need a simple solution for people who don´t want to care about DTML to publish their documents using Composer or similar WYSIWYG tools. These documents should be rendered with some standard HTML-code (navigation and the like). Is there any possibility to do this without having to teach everyone <dtml-var> etc.? We tested various things (access rules) but in the best case we end up with nested <html> tags. Unfortunately, we have no python experts here and we´re not learning fast enough to present a solution within time.
Some background info: we have to ensure that virtually erveryone here has a simple way to put information on the net. Most of these people have little or no HTML knowledge but use Composer, HotMetal or even word to create their documents. So it seems unacceptable to our bosses to bother anyone with manipulating sources. We would really like to use Zope because of its great management features, user management and expandibility (and its price ;-), so any hints would be highly appreciated.
Chris
Mmm.. The best solution I can think of is to go and edit the source. I think if you tried editing the manage_upload, manage_edit etc in /lib/python/OFS/DTMLDocument.py to strip everything up to the <BODY> tag and replace it with your <dtml-standard_html_header> and everything after </BODY> with <dtml-var standard_html_footer>. That means you will probably lose some of the information in the <HEAD> tag (like meta-tags and the like), so depending on how useful these are to you in this situation. Of course this solution means learning python, although I have found that if you have programmed in other languages before it is pretty easy to pick up quickly. Then again there may be some much easier way to do this which I don't know about. Benno (I may even end up implementing this tonight since it seems pretty easy todo and would be useful to many people, however don't hold me to that)
i think you could avoid changing any of the python files by making a copy of the existing html docs and apply the changes (exchanging everything from <html> to <body> with <dtml-var standard_html_header> and changing everything after and including </body> to <dtml-var standard_html_footer>) using one of the normal unix utilities. i suppose an intelligent grep/sed combination that iterates through the html pages should do the job. The resulting might be imported into Zope using FSImport. i haven't used it myself, but that is the purpose it was written for. jens Jens Vagelpohl Systems Administrator Washtenaw Development Council
>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 10/11/99, 8:38:06 AM, Ben Leslie <benno@sesgroup.net> wrote regarding Re: [Zope] Turn static HTML dynamic?:
Moin User!
User Webteam schrieb am Montag, den 11. Oktober 1999:
Hi!
We´re thinking about using Zope for our University website. Now we face following problem: We need a simple solution for people who don´t want to care about DTML to publish their documents using Composer or similar WYSIWYG tools. These documents should be rendered with some standard HTML-code (navigation and the like). Is there any possibility to do this without having to teach everyone <dtml-var> etc.? We tested various things (access rules) but in the best case we end up with nested <html> tags. Unfortunately, we have no python experts here and we´re not learning fast enough to present a solution within time.
Some background info: we have to ensure that virtually erveryone here has a simple way to put information on the net. Most of these people have little or no HTML knowledge but use Composer, HotMetal or even word to create their documents. So it seems unacceptable to our bosses to bother anyone with manipulating sources. We would really like to use Zope because of its great management features, user management and expandibility (and its price ;-), so any hints would be highly appreciated.
Chris
Mmm.. The best solution I can think of is to go and edit the source.
I think if you tried editing the manage_upload, manage_edit etc in /lib/python/OFS/DTMLDocument.py to strip everything up to the <BODY> tag and replace it with your <dtml-standard_html_header> and everything after </BODY> with <dtml-var standard_html_footer>. That means you will probably lose some of the information in the <HEAD> tag (like meta-tags and the like), so depending on how useful these are to you in this situation.
Of course this solution means learning python, although I have found that if you have programmed in other languages before it is pretty easy to pick up quickly.
Then again there may be some much easier way to do this which I don't know about.
Benno
(I may even end up implementing this tonight since it seems pretty easy todo and would be useful to many people, however don't hold me to that)
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(Related lists - please, no cross posts or HTML encoding!
To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
At 14:18 11/10/99 , User Webteam wrote:
Hi!
We´re thinking about using Zope for our University website. Now we face following problem: We need a simple solution for people who don´t want to care about DTML to publish their documents using Composer or similar WYSIWYG tools. These documents should be rendered with some standard HTML-code (navigation and the like). Is there any possibility to do this without having to teach everyone <dtml-var> etc.? We tested various things (access rules) but in the best case we end up with nested <html> tags. Unfortunately, we have no python experts here and we´re not learning fast enough to present a solution within time.
Some background info: we have to ensure that virtually erveryone here has a simple way to put information on the net. Most of these people have little or no HTML knowledge but use Composer, HotMetal or even word to create their documents. So it seems unacceptable to our bosses to bother anyone with manipulating sources. We would really like to use Zope because of its great management features, user management and expandibility (and its price ;-), so any hints would be highly appreciated.
You could just create a ZClass that will allow people to add plain text items. You then format this item by converting linebreaks to <BR> tags. The Zope.org site uses such an object, it's called the Formatted Document I believe. Just set up a membership account, and experiment. It also allows you to use Structured Text and HTML. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
You could just create a ZClass that will allow people to add plain text items. You then format this item by converting linebreaks to <BR> tags.
One thing I would suggest (I don't know how easy it is) but have a Zclass that looks for two linbreaks in a row and inserts a <P> tag instead of one linebreak and inserts a <BR> tag .... your documents will look much better if somebody inserts text from an email or something that has added linebreaks. Josh # # # _____________________________________________ Joshua Brauer Box 915 http://www.brauer.org Fort Collins, CO 80522 Fax: (419) 793-4120 _____________________________________________ In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 _____________________________________________________
Hi, thanks a lot for your suggestions. I´am now trying to modify DTMDocument.py as Ben suggested - based on Oleg Broytmanns modifications to laod_site.py. I´ll let you know if there is any success. Thanks, Chris -- Webteam der Uni Bielefeld mailto:webteam@uni-bielefeld.de
participants (5)
-
Ben Leslie -
Jens Vagelpohl -
Joshua Brauer -
Martijn Pieters -
User Webteam