Portal Engine
Version 3.x > Portal Engine > Language Selection Web Part View modes: 
User avatar
Member
Member
Darren - 9/10/2008 9:34:05 AM
   
Language Selection Web Part
When switching languages and the document hasn't yet been translated on the target site, is it possible to have the CMS redirect automatically to the home page of that site instead of displaying 'The system cannot find the path specified.'? I don't really want to have to put manual redirects on every untranslated document. Is this the only way?

Cheers,

Darren

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/10/2008 10:25:08 AM
   
RE:Language Selection Web Part
Hi Darren,

unless you would like to use documents from the default culture for un-translated documents (Combine With Default Culture in Site Manager -> Settings -> Web Site), you could re-write the switch (URLRewriter.RewriteUrl()) method in: your_project_folder/App_Code/Global.asax.cs

You could use a condition, that if the document exists in other culture, the visitor would be redirect to the home page.

Best regards,
Helena Grulichova

User avatar
Member
Member
Darren - 9/12/2008 3:24:13 AM
   
RE:Language Selection Web Part
Ok no problem, I'll give that a try.

Thanks Helena.