Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page "variants" somewhat like i18n languages
#1
Hi,

I've a request to build a site where are few pages have two variants, "private" or "business". She really wants one to pick a "mode" when entering the site, which then determines which "variant" is seen.

I've used the i18n plugin before, for multi-language sites and it has worked great. What I need now is basically the same, but the parameter is not which language, but which mode is active.

Ideal scenario:
I've got two languages (modes): private and business.
All pages show the private variant per default.
If the user explicitly clicks a "business" link in the site header, the pages that have an explicit "business" variant will display that, or else fall back to the private variant.

I hope the intent is clear.

It seems a bit wrong to abuse the i18n plugin by picking a random language for the "business" mode, and I can't choose an arbitrary language code like "business" since the plugin wont accept an invalid language code.

Any ideas for a nice solution here?
Reply


Messages In This Thread
Page "variants" somewhat like i18n languages - by lindquist - 2014-07-20, 10:10:37



Users browsing this thread: 1 Guest(s)