The structure of the site

Whether or not you decide you will use a splash page, there are basically two ways to structure your site in RapidWeaver:

Method 1: a separate RapidWeaver document for each language, and one for the for the home page or splash page
document 1
http://www.mysite.com/index.html (the home page in English, or the splash page)

document 2
http://www.mysite.com/en/index.html (the home page in English when using a splash page)
http://www.mysite.com/en/gallery/index.html
etc.

document 3
http://www.mysite.com/de/index.html (the home page in German)
http://www.mysite.com/de/fotos/index.html
etc.

With this method, you can add the directory of each language (en, de) to the end of the path in Publish Settings (fig. 1). Document 1 will be published to the root of the site of course and will need offsite pages linking to the home pages in document 2 and document 3 (fig. 2).

Method 2: no separate RapidWeaver document for the home page or splash page
document 1
http://www.mysite.com/index.html (the home page in English)
http://www.mysite.com/en/gallery/index.html
etc.

document 2
http://www.mysite.com/de/index.html (the German home page)
http://www.mysite.com/de/fotos/index.html
etc.

In document 1 you will need to set the language directory for each page in Page Inspector > General > Folder (fig. 3) — except on the home page (fig. 4). In document 2 you can add the directory of the language to the end of the path in Publish Settings (fig. 1).

Next: how to redirect your visitor to the corresponding page in another language
splash1fig. 1: Language set to the path in Publish Settings
splash2fig. 2: A separate splash page (here with offsite pages)
splash3fig 3: Language set in Page Inspector > General > Folder
splash4fig. 4: as fig. 3 (splash page): no language set
Something not clear? Found a mistake? Got a suggestion to improve this tutorial? Please let me know.
© 2013 Marathia Web Design | Contact