Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8834

Extending macro engine using MacroField

$
0
0
Hi I'm trying to register extra fields extending CMS.Membership.CurrentUserInfo. I have an object called Member which has some properties like strings, dates etc but also lists.Currently I can add all top level properties by cycling through the object properties.PropertyInfo[] properties = memberProfileResponse.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); foreach (PropertyInfo property in properties) { object value = property.GetValue(memberProfileResponse, null); MacroField macroField = new MacroField(property.Name, () =@ value); RegisterField(macroField); } How do I add lists as a sub-level in the macro tree. I have tried to add the whole object but there is no tree structure. Is there a way to add something like folder structure similar to the {% CurrentUser.Orders %} for example.Appreciate any help.Thanks Peter

Viewing all articles
Browse latest Browse all 8834

Trending Articles