Can't get admin columns to work

Support MB Admin Columns Can't get admin columns to work

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #10694
    tech500tech500
    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?

    #10708
    Anh TranAnh Tran
    Keymaster

    Hi Dan,

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

    #10717
    tech500tech500
    Participant

    Hi Anh,

    I have two problems:

    1. Can't find an explanation about what "MB 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 TranAnh Tran
    Keymaster

    Hi Dan,

    1. You can find the info for MB 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:

    https://i.imgur.com/AjGtbrS.png

    And here is the result:

    https://i.imgur.com/tsq2OL0.png

    #10734
    tech500tech500
    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 TranAnh 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
    tech500tech500
    Participant

    I truly appreciate your amazing support.
    Thank you.
    Dan

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Can't get admin columns to work’ is closed to new replies.