Advanced configuration
Support › MB Admin Columns › Advanced configurationResolved
- This topic has 8 replies, 2 voices, and was last updated 4 years, 1 month ago by
Long Nguyen.
-
AuthorPosts
-
March 16, 2021 at 1:44 AM #24941
Igor Gouvêa
ParticipantHello
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
March 16, 2021 at 11:09 AM #24944Long Nguyen
ModeratorHi 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
March 16, 2021 at 6:05 PM #26455Igor Gouvêa
ParticipantMarch 16, 2021 at 8:47 PM #26458Long Nguyen
ModeratorHi Igor,
As I can see it works as well, screenshot https://share.getcloudapp.com/xQunrWQd.
Can you please re-check it?
March 17, 2021 at 7:44 AM #26472Igor Gouvêa
ParticipantExcuse 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
March 17, 2021 at 12:47 PM #26479Long Nguyen
ModeratorHi 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.
March 17, 2021 at 6:49 PM #26486Igor Gouvêa
ParticipantThanks!
March 17, 2021 at 7:32 PM #26488Igor Gouvêa
ParticipantI 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?
March 17, 2021 at 8:48 PM #26493Long Nguyen
ModeratorHi,
It is not possible. The field
post
saves post ID to the database so you should use another field to make it searchable. Suggest fieldtext
as on my screen record.Get more details here https://docs.metabox.io/fields/post/#data.
-
AuthorPosts
- You must be logged in to reply to this topic.