I added a custom field to my pages called "areaOfStudy". When trying to access the "Title" field like this, it works:
title = page.GetValue<Lstring>("Title");
But I get this error:
System.Exception: Wrong custom field 'areaOfStudy' for type 'Telerik.Sitefinity.Pages.Model.PageData' when I try to access 'areaOfStudy' like this:
areaOfStudy = page.GetValue<Lstring>("areaOfStudy");
Any ideas? It's odd that it seems to know I am trying to access a custom field, and that it doesn't work when title does, which is not a custom field. Thoughts?