Home › Forums › Feature Requests › Table Field Type
It’d be nice to have a field type designed for building robust tables. Currently, ACF repeaters are fundamentally built on ROWS, but this makes the possibility of adding COLUMNS in a user friendly way extremely difficult. It’d be great if there was a repeater group you could expand vertically as well as horizontally.
See this existing repeater setup as an example… this is a fixed 3 column layout, but imagine if you could click (+) on the last cell in the first row to add a new column.
http://i.imgur.com/c9TKZUz.png
There are currently plugins for this kind of solution such as https://wordpress.org/plugins/tablepress/ but if ACF could support robust tables natively, that’d be awesome.
Hi @mavedisian
I believe there’s an add-on that can do it. Could you please check it out here: https://wordpress.org/plugins/advanced-custom-fields-table-field/screenshots/?
Thanks 🙂
Hi @mavedisian
Wondering if you’ve tried the add-on James mentioned above? I’m looking at using it and would love to hear if you have encountered any issues utilizing it.
Thanks!
Dave
Hi @davemackey
I just tried it out on a project I’m working on and it’s going to work out great. Users can add / remove rows and columns on their own, and conditionally add table headers.
The snag I ran into was that in it’s simplicity, I needed a more complex layout – ability to sub-divide the fields as they are being entered. colspan could have worked, but there’s no control for that in the plugin.
I first tried the jQuery route and got some help on Stackoverflow, but ended up instead using PHP to scan through the td cells for special characters, and inserted div wrappers to control the layout within those cells.
Here’s the write-up on that in case it helps. http://stackoverflow.com/questions/43836976/table-user-controlled-content-with-specific-layout-styling-based-on-the-conten
Going that route, it makes it pretty flexible.
Cheers,
Jonathon
The topic ‘Table Field Type’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.