Jump to content

Adding Country Selector to Completed Site


codeline

Recommended Posts

OK so I just finished off a basic site for client that has a custom CMS and includes news entries and submissions for a contest they are holding. They just threw a curveball at me and asked for a region/country selector as a splash page.

 

Turns out, they need to filter their content by 2 separate countries (US and EUROPE). Luckily it's only those 2 countries. So the obvious is I'm going to have to add a country code type row in all the tables of my db so each news entry and submission can be filtered..

 

I just wanted to get some input on what you guys think might be the best route to go about adding these new sessions with a site that's pretty much already built and structured a certain way: do I add the country row to all tables in my DB and go through all the PHP and add a bunch of new if/else statements to echo out each country's data? Or do I jimmy-rig the whole setup and just duplicate my site and have US have it's own site version with all PHP pulling US data, and EUR have it's own site version and pulling only EUR data.

 

Just want to see what others would do in this situation. Thanks in advance!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.