Changeset 118

Show
Ignore:
Timestamp:
11/23/09 12:29:46 (9 months ago)
Author:
max
Message:

Added support for OpenX ads

Location:
trunk
Files:
3 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/docs/ref/core/ads.txt

    r14 r118  
    77.. module:: courant.core.ads 
    88    :synopsis: Support tools for integrating external ad serving platforms. 
    9      
     9 
    1010This document explains all functionality built in the Courant News platform 
    1111to aid in integration with external ad serving platforms such as OpenX or Google 
     
    2020.. module:: courant.core.ads.templatetags.gam 
    2121    :synopsis: Template tags for integration with Google Ad Manager. 
    22      
     22 
    2323Integration with `Google Ad Manager <http://www.google.com/admanager>`_ 
    2424consists of two template tags. The iFrame method of embedding is used. 
     
    4747 
    4848    {% gam_display_ad "ad_slot_name" width height %} 
    49      
     49 
    5050Renders using the ``ads/gam/display_ad.html`` template. 
     51 
     52OpenX 
     53------------------ 
     54 
     55.. module:: courant.core.ads.templatetags.openx 
     56    :synopsis: Template tags for integration with OpenX. 
     57 
     58Integration with `OpenX <http://www.openx.org/>`_. 
     59The iFrame method of embedding is used by the default templates. 
     60 
     61``{% load openx %}`` should be placed at the top of any template that uses these 
     62template tags. 
     63 
     64.. templatetag: openx_display_ad 
     65 
     66openx_display_ad 
     67^^^^^^^^^^^^^^ 
     68 
     69Inserts an ad into the page based on the supplied zone id and display 
     70dimensions:: 
     71 
     72    {% openx_display_ad zone_id width height %} 
     73 
     74Renders using the ``ads/openx/display_ad.html`` template. 
     75 
     76Invocation code types 
     77^^^^^^^^^^^^^^ 
     78 
     79The default template that ships with Courant News uses the iFrame type 
     80invocation code. Other invocation code types can be used by overriding the 
     81template. 
    5182 
    5283Future Services 
    5384=============== 
    5485 
    55 In the future, there are plans to support `OpenX <http://www.openx.org>`_. If 
    56 there are other services that you would like to see support, please file a 
     86If there are other services that you would like to see support, please file a 
    5787ticket or post on the mailing list.