drupal - Prefixing the pathauto structure with a country code -
my client wants site localised, example.com/uk presents uk version, example.com/aus australian version etc etc. however, want actual content, , nodes delivered, remain , basic path structure not change- prefixed country code. of course want 'switch country' button, automatic redirections based on geoip etc, want focus on path structure. however, still want country selected available within views, content types, template files etc, uk/products/chairs , aus/products/chairs still aliases of node/1 supplied session/cookie/variable set 'uk' or 'aus'.
does know way of doing please? google hasn't supplied knowledge :/
many fanks! :)
if you're on drupal 7, go admin/config/regional/language , click "edit" each language allow set "path prefix language code." append phrase of choosing after domain , before drupal path requested.
the "switch country" button can found on blocks page "language switcher" block.
as uk/products/chairs , aus/products/chairs, long 1 translation of other (using built-in locale module , possibly internationalization module, shouldn't have problems.
Comments
Post a Comment