Jump to content

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!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.