Thursday 04 September 2003 8:36:14 am
Haven't done it before, but this is what it means:
>I'm assuming that means that I have two folders
>within the siteaccess folder, one for English and one >for Spanish. Exactly, you only specify the required language in the ini file, the rest may be the same (unless you harcoded text without the i18n operator in your templates)
>As to "To get the dropdown you only need to link to
>the same URL, but with a different URL prefix." >What dropdown? Link where? Prefix? This means you need to do URL based matching for determining the siteaccess to use eg for a virtual host setup:
http://yoursite/en/... leads to the "english" siteaccess http://yoursite/es/... leads to the "spanish" siteaccess
In your settings/override/site.ini.append.php
[SiteAccessSettings]
you'll have to specify among the available siteaccess and MatchOrder=uri;host;port
URIMatchType=element URIMatchElement=1 Your siteaccess should then be called "en" and "es" You then code some links in your pagelayout which switch between both URL's dynamically:
<a href={concat("/en/",$uri_string)|ezurl}>Engish version</a> <a href={concat("/en/",$uri_string)|ezurl}>Version espanol</a> You can detect the base part (ie "/en" or "/es") used by inspecting the variable $uri.base to make the "switch" fancier (see the docs on template functions and operators) Easy, isn't it (in theory at least, again, I did not test this yet)?
>Also, "If you want different content on the different
>sites you need to build two different directory >structures." Different directory structures where? Don't worry, thats just when you have 2 or more unrelated sites with different langauges. I hope you got these ascii picture(s) -paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|