Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba


Go to End

5 Posts   1774 Views


Community Member, 3 Posts

22 March 2009 at 4:25pm

Has anyone successfully integrated OpenX into silverstripe? if so is there a Howto anywhere?


Forum Moderator, 4102 Posts

23 March 2009 at 4:55am

Edited: 23/03/2009 4:56am

There's really nothing to it. You just give an OpenXZoneID field to any object that you want to have an ad, and then give that object a custom method like:

function Ad()
// use OpenX API to get ad wtih $this->OpenXZoneID

And then on your template, $Ad.

Then of course, you use the CMS to populate the object with its corresponding OpenX ZoneID, which is really easy to find in OpenX.


Community Member, 3 Posts

23 March 2009 at 10:36pm

Thanks for the quick reply - I'll give it a try


Community Member, 44 Posts

24 March 2009 at 10:03pm

Hello do you get it going?

I am have a problem too.
In the Dev Status i receive an Error which belongs to openX.

Now i looked for the API Code, but i didn't find anything, maybe you can help me out.



Forum Moderator, 4102 Posts

25 March 2009 at 3:20am

I think you guys really need to refer your questions to the OpenX forums. Silverstripe's only role in this task is to return the OpenX ZoneID of the ad that is associated with the specific page or dataobject. Once you have that, you should be able to throw it at OpenX and get what you need.