Hello,
Has anyone successfully integrated OpenX into silverstripe? if so is there a Howto anywhere?
Thanks
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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.
Thanks for the quick reply - I'll give it a try
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.
Thanks.
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.