Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Column Types in Table Fields #811

Closed
angrybrad opened this issue Jan 31, 2017 · 15 comments

Comments

@angrybrad
Copy link
Member

commented Jan 31, 2017

Created by: Phil Zelnar (phil@andphil.com) on 2015/03/18 20:09:09 +0000
Votes at time of UserVoice import: 128


It'd be a great if table fields had a bit more variety in terms of column types.

I think the most critical would be an asset since it's pretty common to have some tabular data includes a thumbnail images.

Honestly, I think a more robust set of columns in Tables would solve for a lot of the cases that lead to conversations about "matrix in matrix." The benefit I can see of using Tables is that the UI's already there and it'd be limited to one level (which seems a bit more practical then endless nesting).

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Phil Zelnar (phil@andphil.com) on 2015/03/18 20:09:09 +0000


@josh - This is really great!

@brandon - Just FWIW, I think the feelings about this being baked into Craft are right on. I just chatted a client about it, and in the end the feeling was that (in their case) this would touch so much of their data that they'd rather wait for something native.

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by outline4 (s.a@outline4.ch) on 2015/03/11 07:13:27 +0000


SuperTable FTW! But it would be great if it was native!

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Josh Crawford (joshua@sgroup.com.au) on 2015/03/10 23:58:24 +0000


FYI - please refer to https://github.com/engram-design/SuperTable, which achieves this by allowing you to pick any installed field to be used in a column!

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Josh Crawford (joshua@sgroup.com.au) on 2015/03/10 23:58:24 +0000


I've started altering https://github.com/engram-design/SetTable to handle just this (see https://twitter.com/engramdes/status/573786359539765248). However - it's a fair bit of work, and as Brandon mentions, it's completely overriding the normal behaviour of a table.

Although I'd much rather this be a core thing :)

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Christian (seelbach@gmx.de) on 2015/03/09 00:49:13 +0000


I made a plugin to add Date/Time columns to Table fields, but didn't find a better way of coding it than basically duplicating the core field an building upon this.

https://github.com/carlcs/craft-eventtable

Maybe it'd be worth implementing APIs to the base Table Field, so that it gets more straightforward extending it?

@angrybrad

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2017

Posted by Brandon Kelly (brandon@pixelandtonic.com) on 2015/03/06 03:54:45 +0000


Adding support for non-textual column types would be a drastic change in how Table fields work.

But your point about how this could be a solution for many of the Matrix-within-Matrix needs is a good one, so I'm thinking about it :)

@ritagya-meharishi

This comment has been minimized.

Copy link

commented Feb 22, 2018

Is there a way or a plugin that allows you to add columns and change column headings from within the entry ?

@brandonkelly

This comment has been minimized.

Copy link
Member

commented Feb 22, 2018

@ritagya-meharishi Not that I’m aware of.

@ritagya-meharishi

This comment has been minimized.

Copy link

commented Feb 22, 2018

Thanks for replying @brandonkelly! I just found the supercool table maker plugin with which you can create dynamic tables.

@dougstjohn

This comment has been minimized.

Copy link
Contributor

commented Jun 20, 2018

I'd vote for a Dropdown type. I need a Status column with 3+ options.

@brandonkelly

This comment has been minimized.

Copy link
Member

commented Jun 21, 2018

@dougstjohn We currently don’t have a way to add settings to the columns (e.g. Dropdown Options), so that’s the holdup. Super Table is a great solution if you need that, though.

@brandonkelly brandonkelly added enhancement and removed feature labels Mar 5, 2019
@brandonkelly brandonkelly added this to the 4.0 milestone Mar 21, 2019
@kgrote

This comment has been minimized.

Copy link

commented Apr 3, 2019

Bump for a dropdown type. I've got a situation where I need a more robust table inside a Super Table and I'm outta luck.

@kpamaran

This comment has been minimized.

Copy link

commented Apr 4, 2019

+1 for dropdown type in tables

brandonkelly added a commit that referenced this issue Apr 5, 2019
Resolves #811

Signed-off-by: brandonkelly <brandon@pixelandtonic.com>
@brandonkelly brandonkelly modified the milestones: 4.0, 3.2 Apr 5, 2019
@brandonkelly

This comment has been minimized.

Copy link
Member

commented Apr 5, 2019

Just added support for Dropdown columns for the next 3.2 Alpha release.

If you want to help test, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "3.2.x-dev#214a5703149eee33c7569fe045ca38154c345e9b as 3.2.0-alpha.2",
  "...": "..."
}

Then run composer update.

After choosing “Dropdown” for a new Table column type, you will need to click the cog icon to edit its available options.

Screen Shot 2019-04-05 at 1 58 19 PM

@richhayler

This comment has been minimized.

Copy link

commented May 16, 2019

Hi @brandonkelly, awesome about adding dropdown options to the native table field. I was wondering about the mention of adding the ability to include “assets” or potentially “entries”? I followed closed issues for these requests that lead me here so just wondering if this functionality is planned or whether a couple of FRs should be raised for these now that this one is closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.