On the project page it says that PURL can use various page request elements, subdomain, path prefix etc.

I need to use about three different elements to switch between 'contexts': site language, mobile|desktop and subject area

I'm hoping to use PURL, Spaces and Context to achieve the following, but do not have an understanding yet.

I am also working with D7 so cannot easily just try this for myself, or I would have done it.

Example URL 1: http(s)://m.subj1.example.co.uk/es/restOfPath

m, selects mobile site rather than www for desktop
subj, subdomain selects the subject area
es, selects the page language, Spanish

Example URL 2: http(s)://www.subj2.example.co.uk/zh-hans/restOfPathCouldBeTheSameOrDifferent

Example URL 2 is for a desktop, subject area 2, Simplified Chinese page.

Can PURL do these multiple (three) 'selectors' or am I restricted to two 'selectors' by using URL rewriting in .htaccess and the PURL 'path prefix pairs' option?

Does PURL, Spaces, Context sound like a good combination to achieve the above?

Any guidance anyone can give would be appreciated.

Thanks.

Comments

gmclelland’s picture

I was wondering the same thing, if purl/og_spaces would work with a mobile domain prefix, and multiple languages.

Could someone explain the best way to do mobile and multilingual with purl/og_spaces?