Re: [Zope] (no subject)
-----Original Message----- From: happyrhino@usa.net <happyrhino@usa.net> To: zope@zope.org <zope@zope.org> Date: Saturday, August 28, 1999 5:29 AM Subject: [Zope] (no subject)
#1. The default standard_html_footer has this inside <p><!--#var ZopeAttributionButton--></p> Where is ZopeAttributionButton defined ? I can not find the image object anywhere. Also, where is the variable URL1 defined in the default index_html ? Sorry, I know these are stupid questions and not very important.
These get added to the namespace within Zope somewhere. If you grep through the source files, you'll probably find it. (I'm guessing it happens in ZPublisher... But I haven't looked through that code to see exactly what's happening.)
#2. I want to put all of my images in a folder called "images". If I read the documents right, I can access the contents of a folder using <dtml-with foldername> <dthml-var imagename> </dtml-with> But that is not working. If I place that code inside the root index_html after the standard_html_header then view the page, I get a "save as" popup as if the content type is wrong !
Hmm... this should work <dtml-with images> <dtml-var imagename> </dtml-with> Should result in the creation of an <img> tag pointing to that image. Did you upload your images as "Image" objects or as "File" objects?
Also, how would I access the contents of subfolders of subfolders ? <dtml-with foldername/subfolder> or <dtml-with foldername.subfolder> ?
You could do: <dtml-with foldername> <dtml-with subfolder> </dtml-with> </dtml-with> Or, I believe, <dtml-with "foldername.subfolder"> (Note the ""s. Those are important)
#4. Before I try to install Zope on my Solaris workstation, I need to know whether uninstallation will involve simply deleting the folder ?
I'm not running it under Solaris, but I'm guessing that this is the case. If you're using Apache, then you would need to change your rewriterules, etc... but if you're just using ZServer, I don't think you would need to do anything but delete the directory.
#5. How do you add Javascript events to images ? For example, for rollovers ?
Zope doesn't have anything specifically for creating rollovers... you just put the Javascript within your HTML the same as you would elsewhere. You could possibly write some DTML methods to make it easier on you, though. Kevin
On Sat, 28 Aug 1999, Kevin Dangoor wrote:
-----Original Message----- From: happyrhino@usa.net <happyrhino@usa.net> To: zope@zope.org <zope@zope.org> Date: Saturday, August 28, 1999 5:29 AM Subject: [Zope] (no subject)
#1. The default standard_html_footer has this inside <p><!--#var ZopeAttributionButton--></p> Where is ZopeAttributionButton defined ? I can not find the image object anywhere. Also, where is the variable URL1 defined in the default index_html ? Sorry, I know these are stupid questions and not very important.
These get added to the namespace within Zope somewhere. If you grep through the source files, you'll probably find it. (I'm guessing it happens in ZPublisher... But I haven't looked through that code to see exactly what's happening.) I'd look at ZPublisher/Request.py and HTTPRequest.py, but that's just a guess without looking at the source ;) Another thing to notice, that URLn are computed by the Request object, when I recall correctly, on lookup.
#5. How do you add Javascript events to images ? For example, for rollovers ?
Zope doesn't have anything specifically for creating rollovers... you just put the Javascript within your HTML the same as you would elsewhere. You could possibly write some DTML methods to make it easier on you, though. Well, one could subclass the Image class, and create a ImageRollover class, that does this magically ;)
BUT, one of the problems is, that Rollover is best managed with one Javascript function globally, which is called from the events on a number of <IMG> tags. This might be a problem, because an automatic ImageRollover would have to output this code multiple times :( (It doesn't know if an Image was expanded before on this page. :( ) Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
participants (2)
-
Andreas Kostyrka -
Kevin Dangoor