Can't get admin columns to work
Support › MB Admin Columns › Can't get admin columns to work
- This topic has 6 replies, 2 voices, and was last updated 7 years, 3 months ago by
tech500.
-
AuthorPosts
-
July 24, 2018 at 4:54 PM #10694
tech500
ParticipantHello,
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/3c0G2s3b040bher's how it looks on my backend:
https://cl.ly/1i3S2o3n0E12How this should be done using MB AIO Builder?
July 25, 2018 at 5:07 PM #10708Anh Tran
KeymasterHi Dan,
Please use the Custom Attributes for the image_advanced field. The Columns settings is for MB Columns extension.
July 25, 2018 at 10:14 PM #10717tech500
ParticipantHi Anh,
I have two problems:
- Can't find an explanation about what "MB Columns extension" actually do.
- 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
DanJuly 26, 2018 at 11:20 AM #10726Anh Tran
KeymasterHi Dan,
- 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.
- I created a simple single image field and added custom attribute like this:
https://imgur.elightup.com/AjGtbrS.png
And here is the result:
July 26, 2018 at 4:18 PM #10734tech500
ParticipantThank you very much Anh,
This is much more clear to me now.
Where can I find other attributes like "admin_columns" & "before name" ?Sincerely
DanJuly 26, 2018 at 6:06 PM #10738Anh Tran
KeymasterHi 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_columnstotrue. - If you want to show the field before
namecolumn (like I did in the previous comment), set a custom attributeadmin_columnstobefore name. - If you want to show the field before
namecolumn and has a custom title "Featured Image", then use the dot notation to set a custom attributeadmin_columns.position' to 'before name', and another custom attributeadmin_columns.title' to "Featured Image".
July 26, 2018 at 6:12 PM #10739tech500
ParticipantI truly appreciate your amazing support.
Thank you.
Dan -
AuthorPosts
- The topic ‘Can't get admin columns to work’ is closed to new replies.