You are not logged in Log in Join
You are here: Home » Members » Lalo's page at Zope.org » ZClass-based Advertising Banner Product » swpackage_view

Log in
Name

Password

 
 

ZClass-based Advertising Banner Product

This Product adds a ClickableBanner ZClass, basically a Renderable with properties for URL, and a Banner Folder ZClass.

The BannerFolder object can contain Banners and DTML Methods. It will randomly choose and render one of them. If the chosen object has a "remaining_views" property, it will only be displayed if it is different from 0. It will also decrement "remaining_views" if >0 and increment "views", so you can know how many times it has been viewed.

The folder itself is Renderable too, so all you have to do to get a banner is <dtml-var my_banner_folder>. This is why the default ID for BannerFolders is "banner" (so that you type <dtml-var banner>).

Some parts of the Product are still ugly hacks and workarounds in this version, so beware.

For example, if it doesn't find a suitable subobject (it's empty, or all objects are Banners with 0 remaining_views) it will get into an infinite loop - so always keep at least one Banner with -1 remaining_views, or a DTML Method inside all your BannerFolders.

Depends on PythonMethod and Renderable Zclass.

Latest Release: default
Last Updated: 2000-02-26 14:14:57
Author: ZopeOrgSite
Categories: Commerce, Visual
Maturity: Development

Available Releases

Version Maturity Platform Released
default Development   2000-02-26 14:14:57
  BannerFolder-0.4.zexp (18 K) All
0.5pre Development   2000-09-13 21:36:54
  BannerFolder-0.5pre.zexp (32 K) All
0.3 Development   1999-11-04 09:46:10
  BannerFolder-0.3.zexp (17 K) All
0.2 Development   1999-10-18 21:30:34
  BannerFolder-0.2.zexp (17 K) All
0.1 Development   1999-10-18 14:32:57
  BannerFolder-0.1.zexp (18 K) All