Currently I'm able to create macros through the GlobalResolver by using this code in its own class in the App_Code folder:
public override void Init()
{
ContextResolver.GlobalResolver.SetNamedSourceDataCallback("SomeRandomMacro", SomeRandomMacro, false);
}
private object SomeRandomMacro(MacroResolver r)
{
return "blah logic stuffhere";
}
This will allow a user to see it in the macros screen as SomeRandomMacro, but I want to create my own context such as this:
Custom.SomeRandomMacro
How do I go about doing that? I can't seem to find it in the devnet screens, nor can I find it in these forums.
If someone could help that would be greatly appreciated.
Thanks,
Brian Kellogg