Get rid of /en/ when using Dinamico's LanguageIntersection?

Topics: Developer Forum, User Forum
Developer
Jun 7, 2012 at 6:50 PM

With the Dinamico templates… is there any way to get rid of the /en/ when using LanguageIntersection, so that I can preserve “old” URLs when migrating an old site?

Coordinator
Jun 7, 2012 at 7:15 PM
You can skip the intersaction and use start pages directly.

/C

On Thu, Jun 7, 2012 at 8:50 PM, bherila <notifications@codeplex.com> wrote:

From: bherila

With the Dinamico templates… is there any way to get rid of the /en/ when using LanguageIntersection, so that I can preserve “old” URLs when migrating an old site?

Read the full discussion online.

To add a post to this discussion, reply to this email (n2cms@discussions.codeplex.com)

To start a new discussion for this project, email n2cms@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jun 8, 2012 at 8:40 AM

Ben, what are you describing is actually "old way" of implementing multilingual sites, before LanguageIntersection was introduced as a concept to N2. Simply use structure like this

Root
       StartPageEN (url : /)
             Page1EN
             Page2EN
             Page3EN
             StartPageFR (url : /fr) 
                   Page1FR
                   Page2FR
                   Page3FR 

Developer
Dec 28, 2012 at 7:09 AM

This doesn't seem possible to do anymore with the stock Dinamico templates. I have somehow magically set up a site correctly but I cannot reproduce it on any new sites. All new sites use /start or /en or whatever the name of the Start page is. How can I make the Start page under the LanguageIntersection "/" ?

Thanks,

Ben

Developer
Dec 28, 2012 at 7:12 AM
Edited Dec 28, 2012 at 7:12 AM

Ah, I seem to have done it by altering n2_host.config

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- This is stored in a separate file so that the installation wizard can write to this file without write access to web.config -->
<host rootID="1" startPageID="4" multipleSites="true">
	<web extension="" />
	<vpp><zips>
		<add name="n2.management" observedPath="~/N2/" filePath="~/N2/N2.zip"/>
	</zips></vpp>
</host>