Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

OpenX invoication code, portlet, viewlets

Project Description


Package integrates open source OpenX ad server with Plone. It is possible to show banner from any OpenX “zone” in portlet, define custom viewlet and show banners in viewlet or invoke banner from any template using public openx_view Browser view.

Package supports Javascript invocation only.


You must manually add new property openx_server to the Plone site root and set domain name of your OpenX server without scheme. ‘’ is correct value, but ‘’ is wrong!



Use Manage portlets interface and add “OpenX portlet”. You must specify OpenX zone number and you may set additional properties.


You must define your own viewlet in your own product. There is no default viewlet available for end-users. Example viewlet registration code:

    name="YOUR VIEWLET NAME EG. banner-top-468"
    manager="" - CHANGE MANAGER IPortalTop or IPortalHeader etc.
    template=""  - change template, copy contents of there and don't forget to set "ZONE" parameter inside template
    layer=".interfaces.IThemeSpecific"  - specify your Layer or remove this line

Common template

If you want to invoke OpenX banner from any other template, eg. customized main_template or customized footer etc., you may use openx_view Browser view:

<div tal:define="openx context/openx_view"
     tal:replace="structure python:openx.code(38)" />

‘code’ method supports parameters:

openx_view.code(zone, withText=False, target='_blank')


1.3 - 2010-01-03

  • make it work with older zope/plone instances

1.2 - 2009-09-02

  • Do not use default server. There is no default server now.
  • First public release

1.1.1 - 2009-07-13

  • just re-release

1.1 - 2009-07-13

  • just release

1.0.3 - 2009-03-09

  • Renamed SMFBannerViewlet class to OpenXBannerViewlet (it was typo)

1.0.2 - 2009-03-07

  • Added Plone site property openx_server which allows to set URI of the server. It accepts domain only!!! so “’ or ‘’ is correct value. Do not use http:// prefix.

1.0 - Unreleased

  • Initial release
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (23.8 kB) Copy SHA256 Checksum SHA256 Source Jan 3, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting