Computer Magic Logo
Create the Greek pages

Sunday, August 9, 2015

Published by Aristotelis Pitaridis

Until now we created the English pages and now we will create the Greek pages. One option would be to create one by one all the pages like we did with the English pages but in Umbraco we have a tool which allow us to create copies of entire node trees very easily.

We right click on the en node in order to display the commands of the page.

 We click on the Copy command and the copy form will appear on the screen.

We have to select the place that we want to copy the en node. We want to make it a root node so we click on the Content button which is over the en node.

An icon will appear on the left side of the Content button which means that we successfully selected it and we click the Copy button in order to complete the procedure. The node will appear on the screen with the name "en (1)" and a green panel will appear on the screen in order to inform us about the successful copy creation. We click the Ok button in order to confirm that we have been informed.

We expand the new node and we can see that all the nodes are gray which means that they have not been published yet.

Let’s change the nodes so that they will have the right information and publish them. We start with the language node. We select the en (1) node and change the name of the page to gr and we click the Save and publish button.

We have to update the "Umbraco internal Redirect" property of the gr page. Because we copied the entire en tree all the properties have the same values so we have to change the value of the property and select the home page of the Greek node. In order to do it we click on the Home value next to the property in order to delete it and we click the Add link in order to go and select the Home page of the gr node. After selecting it we have to click the Save and publish button in order to save the changes.

Now we select the Home page and we change the values so that it contains the Greek texts. We do not change the name at the top of the form because this is the information used by Umbraco in order to generate the URL and the Greek and English page has to have the same name. We will see how to resolve this problem later.

We click the Save and publish in order to save the changes and we do the same for the Company page of the gr node.

Now we have completed the Greek pages as well. The URLs work as they supposed to work but we have not create the language selector yet.