grav-plugin-flex-objects icon indicating copy to clipboard operation
grav-plugin-flex-objects copied to clipboard

"selectize" field type handling and filtering in list view

Open phmg701 opened this issue 3 years ago • 4 comments

Hello, following the issue here, there seems to be an unexpected behaviour in field representation. Relevant my_object.yaml parts:

test_tags:
      type: selectize
      size: large
      label: Test Tags
      classes: fancy
      validate:
        type: commalist

test_category:
      type: selectize
      size: large
      label: Test Category
      classes: fancy
      validate:
        type: commalist
  • added field(s) do not have the autocomplete function, otherwise found, for example, in taxonomy field type. This is very very helpful in creating a catalog or any other type of organized data.
  • added field(s) results in ["Test1","Test2","Test3"] in list view, typical array/plain text representation.
  • added field(s) cannot be searched while other text fields can. We could expect the field to be searchable, given its plain text representation of the array.

Thank you!

phmg701 avatar Mar 08 '21 19:03 phmg701

+1

I use selectize fields to create relationships between content using data-options@ to return a list of the pages but this does not work while the Flex Objects plugin is enabled. It only displays the saved value of the field with none of the options from the function. Current working situation is to disabled the plugin, but that gives a big ugly error on the dashboard.

treechime avatar Apr 06 '21 02:04 treechime

+1

@treechime, maybe it's enough to disable Flex Objects for pages? I only discovered that option after quite a while.

skinofthesoul avatar Apr 19 '21 14:04 skinofthesoul

I was just wondering if any progress has been made on the topic. Thanks!

phmg701 avatar Mar 29 '22 19:03 phmg701

Just today I encountered the same problem. Perhaps somebody can give a hint or solution.

PeterB513 avatar Apr 26 '22 15:04 PeterB513