Advanced configuration

Support MB Admin Columns Advanced configurationResolved

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #24941
    Igor GouvêaIgor Gouvêa
    Participant

    Hello

    I would like to know how to configure as searchable and filterable properties in the custom settings field, in the advanced configuration of the custom fields.

    I was able to set up to organize my columns:

    key (admin_columns) and value (true) and
    key (admin_columns) and value (replace title)

    But I'm not managing to make this field filterable and searchable

    I know I have these parameters to configure:

    'admin_columns' => array (
    'position' => 'after title',
    'title' => 'Price',
    'before' => '$',
    'after' => 'USD',
    'sort' => true,
    'searchable' => true,
    'filterable' => false,
    ),

    But I don't know what to write in the KEY and VALUE field

    #24944
    Long NguyenLong Nguyen
    Moderator

    Hi Igor,

    Please refer to this topic to know how to enable admin columns in the Builder
    https://support.metabox.io/topic/add-fields-to-admin-columns-using-builder/

    admin_columns.title => Price

    #26455
    Igor GouvêaIgor Gouvêa
    Participant

    Hi Long

    Did not work.

    https://cutt.ly/yzNVbsn

    https://cutt.ly/HzNVEYA

    #26458
    Long NguyenLong Nguyen
    Moderator

    Hi Igor,

    As I can see it works as well, screenshot https://share.getcloudapp.com/xQunrWQd.

    Can you please re-check it?

    #26472
    Igor GouvêaIgor Gouvêa
    Participant

    Excuse me

    I don't think I'm getting it.

    I tried all day.

    I managed to place the columns but I couldn't filter or search for them.

    See the image:

    https://cutt.ly/ez01ejj

    I put the WORK column and the DATE OF THE DAILY column.

    Now I need to filter by WORKS and by DATE OF THE DAILY.

    Please, if possible, enter the configuration for me.

    I need to deliver this. Help me

    #26479
    Long NguyenLong Nguyen
    Moderator

    Hi Igor,

    Please read the description of the admin columns settings

    searchable   Allow to search posts by meta value. Optional. Default is false.
    filterable  Allow to filter posts by custom taxonomy. Applied only if the field is taxonomy field. Default is false.

    https://docs.metabox.io/extensions/mb-admin-columns/#3-advanced-configuration

    Filterable is used for the field taxonomy and the taxonomy is assigned to that post type. I've also created the short screen record for example https://share.getcloudapp.com/12uoweqo.

    You can check the admin columns setting when editing the field group Diário de Obras.

    #26486
    Igor GouvêaIgor Gouvêa
    Participant

    Thanks!

    #26488
    Igor GouvêaIgor Gouvêa
    Participant

    I understood my problem regarding admin_columns.searchable in the WORK field.

    The problem is that I use a "select advanced" field. With this, what is saved in the bank is the ID and not the description of the work.

    Is there a way to save the description of the WORK and not the ID?

    #26493
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It is not possible. The field post saves post ID to the database so you should use another field to make it searchable. Suggest field text as on my screen record.

    Get more details here https://docs.metabox.io/fields/post/#data.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.