(I do not know which thread this should go on but....)
Reference: App_Data\Razor\composite\Navigation\LanguageSwitcher.cshtml
Currently it uses the references from CompositeC1WebPage, but this can result in a null reference to a non-nullable item later on, causing issues in the code for blended applications (such as mine).
var currentHomeID = HomePageNode.Id;
var currentPageID = CurrentPageNode.Id;
Converting this to use Composite.Data.SitemapNavigator methods causes a GUID.Empty to be entered instead of null, and prevents the downstream null issues, such as the yellow error box being displayed...it simply does not draw the language box: In my localized testing, I come up with the same pages, but, to my credit, I am running a very simple site with a depth of 3, no newsgroups or blog (yet).
var currentHomeID = Composite.Data.SitemapNavigator.CurrentHomePageId;
var currentPageID = Composite.Data.SitemapNavigator.CurrentPageId;
Comments: Fixed in v 1.0.9 - available online for C1 4.0 or later,
also auto-installed for Razor-based websites with C1 4.0
Reference: App_Data\Razor\composite\Navigation\LanguageSwitcher.cshtml
Currently it uses the references from CompositeC1WebPage, but this can result in a null reference to a non-nullable item later on, causing issues in the code for blended applications (such as mine).
var currentHomeID = HomePageNode.Id;
var currentPageID = CurrentPageNode.Id;
Converting this to use Composite.Data.SitemapNavigator methods causes a GUID.Empty to be entered instead of null, and prevents the downstream null issues, such as the yellow error box being displayed...it simply does not draw the language box: In my localized testing, I come up with the same pages, but, to my credit, I am running a very simple site with a depth of 3, no newsgroups or blog (yet).
var currentHomeID = Composite.Data.SitemapNavigator.CurrentHomePageId;
var currentPageID = Composite.Data.SitemapNavigator.CurrentPageId;
Comments: Fixed in v 1.0.9 - available online for C1 4.0 or later,
also auto-installed for Razor-based websites with C1 4.0