I want a number of properties to have fallbacks to other properties- such that when they are unset, a different value is returned
pretty sure I used to be able to achieve this like so
public virtual string TeaserText
{
get
{
var teaserText = this.GetPropertyValue(x => x.TeaserText);
return string.IsNullOrWhiteSpace(teaserText) ? this.SeoDescription : teaserText;
}
set
{
this.SetPropertyValue(x => x.TeaserTitle, value);
}
}
however when I am calling a page with no explicit TeaserTitle set from the api, it seems to not even run the property code at all, and instead omits the property completely from the response.
feel like I am missing something.. is there anyway to deal with fallback properties reliably for V12 content api
I want a number of properties to have fallbacks to other properties- such that when they are unset, a different value is returned
pretty sure I used to be able to achieve this like so
however when I am calling a page with no explicit TeaserTitle set from the api, it seems to not even run the property code at all, and instead omits the property completely from the response.
feel like I am missing something.. is there anyway to deal with fallback properties reliably for V12 content api