Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Why is a list limited to a max of 31 items? Comment
    •  ·  LeonidS
    •  ·  2019-09-12T16:49:07+0000

    Hello Keith Fawcett !

    As UNA stores the results of similar fields as Bit mask it can't have too big values because the number of all stored variants easily may exceed the size of INT. That's why we have limits in the code like:

    if (!defined('BX_DOL_INT_MAX'))

        define('BX_DOL_INT_MAX', 2147483647);

    in inc/params.inc.php

    and this one:

    define('BX_DOL_STUDIO_FIELD_PRE_VALUE_INT_MAX', round(log(BX_DOL_INT_MAX, 2)));

    in studio/classes/BxDolStudioFormsPreValues.php

      •  ·  Keith Fawcett
      •  ·  In reply to
        LeonidS
      •  ·  2019-09-12T17:03:45+0000

      Thanks LeonidS. There really should be a way to add multiple items and be able to have the field reference more than 31 items. 

      As an example... this field, "Brand", has tons of values, and you can select multiples. If needed, also allows for searching. https://preview.algolia.com/instantsearch/  

      image_transcoder.php?o=bx_froala_image&h=2031&dpx=1&t=1568307443

      Other examples that perform a search and allow for multiple selections that references values in DB.

      https://select2.org/searching

      https://selectize.github.io/selectize.js/

      https://harvesthq.github.io/chosen

    See more...
    • Features
    • Pricing
    • Forum
    • Blog
    • Market
    • About
    • Copyright
    • Contact
    • Terms
    • Privacy
    • 𝕏
    Search
    UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
    • Features
    • Core CMS
  • Resources
    • Documentation
    • Marketplace
    • Discussions
    • Support Groups
    • API Reference
    • UNA CMS on GitHub
    • Webinars
    • Blog
  • Community
    • Discussions
    • Groups
    • Webinars
  • Pricing
  • Are you sure?
    Please, enter a value here