I am having trouble with hidden a webpart when using a custom macro
I have a custom macro {% ProcessCustomMacro("IsNotDefault", "") %} which the results is "true" or "false"
in the CMCustom.cs:
case "IsNotDefault":
match = true;
if(!GetCurrentCenterProfile().GetValue("CenterNumber").ToString().Equals("000")){
result = "true";
}else{
result = "false";
}
I have tried
{%{#IsNotDefault#}|(equals)true%} and others.
I see a lot of documentation when using built in macros such as the document name etc
Can someone provide and example when using a custom macro when calling ResolveCustomMacro??