Now i figured out why the meta fields weren't saving - i hadn't added them to the correct section of the control, <sf:ContentMetaFields/>.Having done this now, the saving works!
I ran into the next problem though in my frontend control (ListPageMaster.aspx).
I want to now check if the page is german or english, and if it is english, replace my default german news title and summary with the english ones. I can retreive my new english title, but can't figure out how to change the text of the Literal ("Title") in the repeater from code.
i try the function below - calling it from the repeater OnItemDataBound.
protected void translate(object sender, RepeaterItemEventArgs e)
//some check for current language to go here
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
foreach (RepeaterItem item in this.repeater.Items)
Literal myLiteral = (Literal)e.Item.FindControl("Title");
myLiteral.Text = "English Text";
// later to be replaced with the text from new metafield holding the english title - this doesn't work to change the literal at all
does anyone know if i am at all trying to do this the right way, or if there is a better way to achieve localization of a metafield?
and if this the right way, what would be the code to update the literal within the repeater?
hope this makes any sense at all, as i am completely new to .net!