On your model, you can use an attribute to indicate to Ditto that it should use an inherited value if it can't find a populated current value:
using Our.Umbraco.Ditto;
// 1st param: the property name // 2nd param: an alternate property name if 1st isn't available // 3rd param: bool flag to indicate if the value should be found recursivily [UmbraocProperty("PageTitle", "", true)] public string PageTitle { get; set; }
Unable to get value of parent property using Ditto
Hi,
Currently i am using umbraco 7.2.4 and Ditto
Ditto is working fine, but I am amble to get value of parental property, kindly see below
See below snap of my debug code
can some one help on this.
Thanks in advance
Regards,
Mehul Gajjar.
Hi Mehul,
On your model, you can use an attribute to indicate to Ditto that it should use an inherited value if it can't find a populated current value:
HTH,
Hendy
Hi Hendy,
Thanks for reply its works for now.
Thanks
Mehul Gajjar
is working on a reply...