Question

for a large project ive worked on (~310k uniq/day, large site, lots of templates, lots of content), we have to deal with the client selling several sections of the site (each with different layouts) for ad revenue. sometimes, its the top of the page for a 900x250, sometimes its a 952x200 under the nav, sometimes it requires a new div with custom styles. the ads are served through google's ad manager, and the ad buyers rarely (if ever) agree to customizing their implementation code for our site.

all of the code for this site is in a svn repo than we try to keep very tidy:

  1. edit the templates "online" (on the production server) (such a bad idea)
  2. make changes to local copy, push live (and risk later reverting back to old ad code and missing it/having to deal with it before going live. people miss things, dont pretend like you don't and say 'check harder'.)

neither of those options are particularly attractive. how do you guys do it?

Was it helpful?

Solution

Maybe you could consider taking the ad code out of your templates/source code and putting it into your database. I think of ads as more "content" for the site which can be managed by your code in the same way as other web site content. You can still set up the ads on a staging site, then copy/paste the relevant bits to your live site with this approach.

OTHER TIPS

I think the best bet is to figure out how to divide the code up into smaller pieces to separate the changing code from the static code into different files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top