Back End process/changes

Let us assume our website name is ‘mysite’

Step 1. Create Web root with two root files.

 

Screenshot from 2015-02-12 11:54:22

 

Here “Root_Local” is accessed with ‘site1.com/mysite’ and “Root_IP” is accessed with ‘site2.com/mysite’

2. To add languages to our ‘mysite’.

Click on the “list” from left panel and select “New TYPO3 site” from the tree. Then click on the “create new record” from top panel.

Select “Website language” from the records.

Screenshot from 2015-02-12 12:09:00

 

In that, give language name and select the flag corresponding to it. Save and close.

Now add your contents to your page. And make a copy of it by changing the language to German.

Then enable the content visibility

Screenshot from 2015-02-12 12:10:46

 

Now the website content is in two languages. Default is English and other one is German

We should add typoscript to our template to show the listing of languages in front end.

So add this code to the Main Template of our website

 

Here the id for English is “id=1” and for German it is “id=3”

This will show in menus in front for switching the language.

3. To add Multidomain to our site

Here, we are going to access the “Root_IP” only by using IP address like “site2.com/mysite”

For this click “list” from left panel and select “Root_IP”, then slect “create new record” from top panel.

Select “Alternative Page Language” from the window.

Screenshot from 2015-02-12 12:22:19

 

Give the domain name as “site2.com/mysite” as shown above. Then save and close the record.

Now when you access the URL like “site2.com/mysite” in your browser it shows only the content of “Root_IP”. (We can add different template and different CSS to change the look and feel of “site2.com/mysite” than accesing it like “site1.com/mysite”).

Now our “mysite” is ready with Multilanguage and Multidomain operations.