Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Umbraco 137 posts 294 karma points
    Oct 16, 2011 @ 23:17
    Umbraco
    0

    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.

     

  • Bruce Canino 21 posts 42 karma points
    Apr 26, 2012 @ 00:51
    Bruce Canino
    0

    Did you put a number in for

    Max Number
    field?
  • Dave Clinton 31 posts 106 karma points
    Jul 31, 2013 @ 23:02
    Dave Clinton
    0

    Aha not specifying a max number is what caught me out as well, thanks Bruce :)

  • Rahmathullah 7 posts 85 karma points
    Sep 15, 2014 @ 12:20
    Rahmathullah
    0

    where to specify this?

  • Dave Clinton 31 posts 106 karma points
    Sep 15, 2014 @ 15:41
    Dave Clinton
    0

    @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.

     

Please Sign in or register to post replies

Write your reply to:

Draft