OK, having been a while since I last worked on a non-horrible-kludge banner product, I decided to give BannerFolder a shot. Works quite well. However, it is only fo rbanners where the image is stored locally. Many banners these days are not done this way, rather you get a full href, including an <img src=....> tag. So what I thought I would start with was to add a property called local, and modify Banner's render method to return _jusr_ the hit_URL for non-local banners. Works fine except when it comes time to render the image. Th eimage is always broken. After some digging, I determined that Zope is inserting the bannerfolder's id into the image tag's image tag such that: <img src="<http://link-toimage-on-other-site"> becomes: <img src="hbanner/http://link-toimage-on-other-site"> Now, what I was doing in my banner kludge was to have the same basic setup, and I used a with tag for the banner folder. So, my question is "how do I get Zope to _not_ put the 'hbanner/' into the img src tag?" That aside, anyone know of any good way of implementing a weighting mechanism to work with BannerFolder? So far, I have an idea about creating a list of banners to choose from, banners would have a weight of 1, with the weight being the number of times they appear in the list. Thoughts? (this aspect of the question may be more sutied to the zope-commerce list) Bill -- 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
participants (1)
-
Bill Anderson