How to configure multilanguage site setup in contao? - multilingual

I'm new in contao. can any one tell how to configure multilanguage site setup in contao ?

By default, multiple languages in Contao are handled by using multiple Website roots. Edit the properties of a website root and look under DNS settings » Language. For your primary/fallback language you should also enable the option Language fallback to the right.
When creating a second language, you create a new Website root and in the aforementioned settings you insert the correct IETF language tag. Within this website root you can build the website independently in the new language. You could also copy an existing website root, including its whole site structure and articles.
If you are using different domains for each language, you have to set the respective domain under Domain name. If not, you should probably enable the option Add the language to the URL within System » Settings » Front end configuration.
If you want to implement a language switcher in the frontend, you can use the [changelanguage] extension.

Related

How does App-Engine disambiguate custom domains with wildcards?

If I add a custom domain like *.example.com to my app-engine project, I can then selectively add CNAMEs to that domain pointing to ghs.googlehosted.com to forward subdomains to this project, which will then identify versions in the project.
For example, if my project has a version called www and a version called contact, and I set the CNAMEs for www.example.com and contact.example.com to ghs.googlehosted.com, then www.example.com will be hosted by the www-version of my project and contact.example.com will be hosted by the contact-version of my project.
For completeness: If I don't use the *, but instead add www.example.com and contact.example.com as custom domains to my project, both will be served according to the traffic allocation to the different project versions, whatever they may be.
Now, things get interesting (and that's where my question comes in), if I add *.example.com as a custom domain to one project and dataserver.example.com to a different project. Now, Google App-Engine has to disambiguate whether dataserver.example.com refers to the dataserver version of the first project or to some version on the second project according to that project's traffic allocation.
When I set this up a few months back, it did (what I think is) the most logical thing: It picks the latter, since dataserver.example.com is more specific than *.example.com and should thus take precedence. But when I tried to set up another set of projects yesterday, it instead tried to serve me the dataserver version of the first project (which initially didn't exist, and thus I got 404s, but when I deployed a dummy one, I got that back).
Now the question is: What does App-Engine actually do? Is it random? Is it first-created, first-served? Is it by specificity, but might take a while to propagate to all servers?

Configuring / Implementing Apache on cPanel

I'll start by saying I am completely new to Apache.
I'm trying to make my way through this particular tutorial about enabling rich social sharing in an Angular.js app: http://www.michaelbromley.co.uk/blog/171/enable-rich-social-sharing-in-your-angularjs-app#_section-set-up-the-server-side-script
The author mentions three specific Apache modules that need to be enabled: mod_rewrite, mod_proxy and mod_proxy_
My question is - are these modules enabled by default on cPanel? Is there somewhere that I can see them in the user interface? How do I know they can be accessed for the particular domain I'm working on?

Custom Url with Umbraco(other CMS) to point to existing website

We have a running multi-lingual app hosted in Azure written in AngularJS. For managing some of the unsecured/public pages, we are looking for hosting another app with a CMS. So our app structure is would look something like:
App: www.example.com
CMS: www.examplecms.com
What we want to achieve is that dynamic content generated by CMS (different domain) for static pages be served using urls in www.example.com. Is it possible? We are primary targeting .net based CMS solutions but are open to other platforms. The static content is not too complicated.
Since the app supports multiple languages and most of the CMS solutions available offer multi-language support via subdomain.example.com or www.example.com/language/ directory structure, we want the custom url redirection to point to our app site (www.example.com).
Looking for suggestions you opinions or best strategies to work around this problem.
This Q is off topic, nether the less...
As you would essentially be running 2 entirely different web sites, yes everything would work just fine. The requirements are vague and very generic but any application/CMS could be setup in different domains and if you wanted requests made between them, allowing cross origin requests would allow sharing content/data.
Umbraco, like many CMS's supports multilingual sites using path prefixes as you mention along with any other method you are willing to write yourself.

How to maintain and extend Drupal based site?

I've just released a simple Drupal based site on a hosting partner.
The development was done by, first running a install script provided by my hosting partner. The script installed a default Drupal site eith a database.
After this I just logged in to my site and used admin tools to configure my site.
If that was step one,, step two will be to extend my site with one or two extra functions and improve look and feel.
My question is,,, how do I do that without interfering with my site witch now is "live"?
Are there some established methods and tools for doing this??
/regards
/lg
That depends on what you want to do and how you have your site set up so far. If you have one page that is set as frontpage, then you can make another page and test your new functions on that one. Or you could install another site, set it up in a similar way and try it there first.
There's of course loads of ways to do everything. You can start searching for "drupal deployment workflow" and go from there.

Multiregional Websites

I would like to make a multiregional website but I am having some difficulties. I use cPanel and are laying out the domains as:
ca.example.com
usa.example.com
fr.example.com
I want to know how I would add the subdomains in and be able to use my one custom made php script to run these websites via .htaccess or whatever form.
You should use cPanel's parked domain feature. When you park a domain in cPanel, you can point it to the same root as your main domain. In the Parked Domains interface in cPanel, add your language subdomains (e.g. ca.example.com). All your language subdomains will then redirect to the same main domain (example.com).
Then, you can use PHP's $_SERVER['SERVER_NAME'] property to parse out the server name the user used to access the page, and in turn render the page in the correct language.

Resources