Custom Fields
Re-Envisioned
Support MB Admin Columns Can't get admin columns to work

This topic contains 6 replies, has 2 voices, and was last updated by  tech500 11 months, 3 weeks ago.

  • Creator
    Topic
  • #10694

    tech500
    Participant

    Hello,

    I’m using the MB Builder, not hand code…
    I have an image_advanced field that I want to show on a term list under admin.

    Example: Created a featured image field that I attach to “service-category” terms.
    So I want the category admin list to show the featured image column with a thumbnail.
    Something like this, but for terms.
    https://cl.ly/3c0G2s3b040b

    her’s how it looks on my backend:
    https://cl.ly/1i3S2o3n0E12

    How this should be done using MB AIO Builder?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #10708

    Anh Tran
    Keymaster

    Hi Dan,

    Please use the Custom Attributes for the image_advanced field. The Columns settings is for Meta Box Columns extension.

    #10717

    tech500
    Participant

    Hi Anh,

    I have two problems:

    1. Can’t find an explanation about what “Meta Box Columns extension” actually do.
    2. Can’t find instruction on how to add fields or terms into the Admin index tables. I understand this should be done with “Custom Attributes”, but I’m looking for an example what should be placed there.

    Thanks
    Dan

    #10726

    Anh Tran
    Keymaster

    Hi Dan,

    1. You can find the info for Meta Box Columns extension here. I understand that there’s no explanation in the Builder. I’ll think more about updating the Builder to make it clear.
    2. I created a simple single image field and added custom attribute like this:

    View post on imgur.com

    And here is the result:

    View post on imgur.com

    #10734

    tech500
    Participant

    Thank you very much Anh,

    This is much more clear to me now.
    Where can I find other attributes like “admin_columns” & “before name” ?

    Sincerely
    Dan

    #10738

    Anh Tran
    Keymaster

    Hi Dan,

    All the settings for admin columns are listed in the docs. And in the Builder, you can set the params using dot notation.

    For example:

    • If you just want to show the field in the admin column, set a custom attribute admin_columns to true.
    • If you want to show the field before name column (like I did in the previous comment), set a custom attribute admin_columns to before name.
    • If you want to show the field before name column and has a custom title “Featured Image”, then use the dot notation to set a custom attribute admin_columns.position' to 'before name', and another custom attributeadmin_columns.title’ to “Featured Image”.
    #10739

    tech500
    Participant

    I truly appreciate your amazing support.
    Thank you.
    Dan

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Can't get admin columns to work’ is closed to new replies.