Support Forum
Support › MB Admin Columns › Advanced configurationResolved
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
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
Hi Igor,
As I can see it works as well, screenshot https://share.getcloudapp.com/xQunrWQd.
Can you please re-check it?
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:
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
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.
Thanks!
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?
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.