Changeset 118
- Timestamp:
- 11/23/09 12:29:46 (9 months ago)
- Location:
- trunk
- Files:
-
- 3 added
- 1 modified
-
courant/core/ads/templatetags/openx.py (added)
-
courant/templates/ads/openx (added)
-
courant/templates/ads/openx/display_ad.html (added)
-
docs/ref/core/ads.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/ref/core/ads.txt
r14 r118 7 7 .. module:: courant.core.ads 8 8 :synopsis: Support tools for integrating external ad serving platforms. 9 9 10 10 This document explains all functionality built in the Courant News platform 11 11 to aid in integration with external ad serving platforms such as OpenX or Google … … 20 20 .. module:: courant.core.ads.templatetags.gam 21 21 :synopsis: Template tags for integration with Google Ad Manager. 22 22 23 23 Integration with `Google Ad Manager <http://www.google.com/admanager>`_ 24 24 consists of two template tags. The iFrame method of embedding is used. … … 47 47 48 48 {% gam_display_ad "ad_slot_name" width height %} 49 49 50 50 Renders using the ``ads/gam/display_ad.html`` template. 51 52 OpenX 53 ------------------ 54 55 .. module:: courant.core.ads.templatetags.openx 56 :synopsis: Template tags for integration with OpenX. 57 58 Integration with `OpenX <http://www.openx.org/>`_. 59 The 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 62 template tags. 63 64 .. templatetag: openx_display_ad 65 66 openx_display_ad 67 ^^^^^^^^^^^^^^ 68 69 Inserts an ad into the page based on the supplied zone id and display 70 dimensions:: 71 72 {% openx_display_ad zone_id width height %} 73 74 Renders using the ``ads/openx/display_ad.html`` template. 75 76 Invocation code types 77 ^^^^^^^^^^^^^^ 78 79 The default template that ships with Courant News uses the iFrame type 80 invocation code. Other invocation code types can be used by overriding the 81 template. 51 82 52 83 Future Services 53 84 =============== 54 85 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 86 If there are other services that you would like to see support, please file a 57 87 ticket or post on the mailing list.