Macro container property reports "Only 0 macros are allowed" but 2 macros are allowed
I have just configured a new Data Type using the Macro Container control. I have selected two macros under the data type's Allowed Macros setting.
Now when I add a property of this data type to a document type and then try to use the control, I can't add any macros and the control renders "Only 0 macros are allowed"
Do I need any other configuration for this to work? The macros I have allowed are both Razor macros, both located in a subfolder of the ~/macroScripts folder, and one of them can also be used and rendered in the editor.
If you go to Developer > Data Types and select Macro Container then at the bottom of the page (below the Allowed Macros list) you'll see a field to specify the maximum number of macros that are allowed.
Macro container property reports "Only 0 macros are allowed" but 2 macros are allowed
I have just configured a new Data Type using the Macro Container control. I have selected two macros under the data type's Allowed Macros setting.
Now when I add a property of this data type to a document type and then try to use the control, I can't add any macros and the control renders "Only 0 macros are allowed"
Do I need any other configuration for this to work? The macros I have allowed are both Razor macros, both located in a subfolder of the ~/macroScripts folder, and one of them can also be used and rendered in the editor.
Did you put a number in for
Aha not specifying a max number is what caught me out as well, thanks Bruce :)
where to specify this?
@Rahmathullah
If you go to Developer > Data Types and select Macro Container then at the bottom of the page (below the Allowed Macros list) you'll see a field to specify the maximum number of macros that are allowed.
is working on a reply...