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
Closed

More Column Types in Table Fields #811

angrybrad opened this issue Jan 31, 2017 · 15 comments
Labels
content modeling 📓 features related to content modeling enhancement improvements to existing features

Comments

@angrybrad
Copy link
Member

Created by: Phil Zelnar ([email protected]) 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
Copy link
Member Author

Posted by Phil Zelnar ([email protected]) 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
Copy link
Member Author

Posted by outline4 ([email protected]) on 2015/03/11 07:13:27 +0000


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

@angrybrad
Copy link
Member Author

Posted by Josh Crawford ([email protected]) 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
Copy link
Member Author

Posted by Josh Crawford ([email protected]) 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
Copy link
Member Author

Posted by Christian ([email protected]) 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
Copy link
Member Author

Posted by Brandon Kelly ([email protected]) 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
Copy link

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

@brandonkelly
Copy link
Member

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

@ritagya-meharishi
Copy link

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

@brandonkelly brandonkelly added system administration 💼 features related to system administration matrix 🕶️ features related to Matrix fields labels Feb 25, 2018
@dougstjohn
Copy link
Contributor

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

@brandonkelly
Copy link
Member

@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 improvements to existing features and removed feature labels Mar 5, 2019
@brandonkelly brandonkelly added this to the 4.0 milestone Mar 21, 2019
@kmgdevelopment
Copy link

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
Copy link

kpamaran 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 <[email protected]>
@brandonkelly brandonkelly modified the milestones: 4.0, 3.2 Apr 5, 2019
@brandonkelly
Copy link
Member

brandonkelly 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

@brandonkelly brandonkelly removed system administration 💼 features related to system administration matrix 🕶️ features related to Matrix fields labels Apr 23, 2019
@brandonkelly brandonkelly added the content modeling 📓 features related to content modeling label Apr 23, 2019
@richhayler
Copy link

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
Labels
content modeling 📓 features related to content modeling enhancement improvements to existing features
Projects
None yet
Development

No branches or pull requests

7 participants