thanks Jan... below is a hack I'm throwing in our templates until a fix comes out (may not be a good example since I'm not using standard Umbraco fields but anyways):
@{
@* umbraco field/alt-field hack *@
var primaryField = Convert.ToString(Umbraco.Field("pageHeader", "pageHeader"));
var altField = Convert.ToString(Umbraco.Field("navigationTitle", "navigationTitle"));
var outputData = !String.IsNullOrEmpty(primaryField) ? primaryField : altField;
@* output field data *@
@Html.Raw(String.Format("<h2 class=\"h2\">{0}</h2>", outputData));
@* <h2 class="h2">@Umbraco.Field("pageHeader", altFieldAlias: "navigationTitle")</h2> *@
}
Umbraco 6.2 cannot access any of the standard Umbraco Fields
data in the templates (I'm using MVC)...
@Html.Raw("path = " + Umbraco.Field("path"))
displays "path = "
as a matter of fact, none of the standard Umbraco Fields are accessible now. ugh!
Hi John
I'm afraid it's a bug in the 6.2.0 release - Appears more people are having the issue since it's been reported here http://issues.umbraco.org/issue/U4-4851
/Jan
wow - thank you Jan as always!
at least I can now pass the altField value in the meantime. Much appreciated! Any idea when the next patch will be?
Hi John
I'm happy to help :)
Unfortunately I have no idea when a patch release can be expected. But hopefully soon.
/Jan
thanks Jan... below is a hack I'm throwing in our templates until a fix comes out (may not be a good example since I'm not using standard Umbraco fields but anyways):
is working on a reply...