Hi there, i am fairly new to DynamicWeb so the way i am doing this might be totally wrong so sorry for that.
But basically what i want is to add a language switcher on my master template, i got the links to the 2 different home pages and it looks like this
Dynamicweb.Content.PageCollection languages = Dynamicweb.Content.Page.GetPagesBySql(String.Format("SELECT * FROM Page WHERE PageSort = {0}", 1));
This gets me the 2 home pages in a foreach loop that looks like this
foreach (Dynamicweb.Content.Page language in languages)
but on top of that i would like to be able to add a flag on each of the masterpages, i added a file upload field in the masterpage section, but question is now, how do i access it and get hold of it ? i hear something about using PageView and i tried using this code i found in another forum post that looks like this
Dynamicweb.Frontend.PageView.GetPageviewByPageID(language.ID).get_Value("Thumbnail_Image).ToString();
but so far nothing, i can't get ANY value by using the get_Value method.
Hope someone can help me :)
Thanks in advanced!