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
Cleanup the default datatypes (remove the ones that need config input, add ones that can be used across implementations) #8729
Comments
|
Usually I create instances as the following:
|
|
I always add a checkbox and name it Checkbox so there is then one present that can be re-used. This used to be present in v7 and this reduces the possibility of inadvertently ending up with a long doctype specific name for a simple checkbox |
|
yup good one @madden-tom |
|
Main point would be, this can be confusing for new folks... and also a waiste of time for the oldies... (setting up the same stuff each time) |
|
Also seems an easy thing to change, from what I can see it is handled here: https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs#L249 (inserting the default data in the database) |
|
We'll have to have a chat at HQ and see what we think makes sense. I'll link this to #6658 since we never really seem to have concluded anything there either. |
|
@nul800sebastiaan ok sweet! The ones that are just empty don't make sense imho, since they just end up confusing folks...adding the ones that avoid people creating the same basic ones over and over again... |
|
@nul800sebastiaan also why move this to an internal invisible channel... keep it OPEN and FRIENDLY :) |
|
We'll transparently, openly and in a friendly way let you know what the outcome of that chat is. |
|
Sounds good just keep it RESPECTFUL |
|
And just to set some expectations, our next meeting around things like this is in a week and a half and there's community representation from the core collaborators team in this meeting. |
I am not sure why you are quoting our values at me? I would hope that it's understood that we alway try to live up to the values we've set for ourselves. |
|
both sounds good! looking forward to the outcome! |
|
Alright, we've had a good chat about it at HQ and talked about the history of datatypes as well, fun fact: the only reason we have "hide label" on all datatypes right now is because in version 2 (yes, two!) of Umbraco, the RTE needed to be on it's own tab and it didn't make sense to show the label since the tab name was already the label. So we're still dragging along that wonderful bit of legacy right now. Anyway, back to the matter at hand: yes, it makes total sense to only pre-install datatypes that don't need a configuration. This will make it faster to add those datatypes to the doctype not having to show an extra step of configuring it. These datatypes would be:
Now, we're looking for some input:
Did I forget anything? Testing |
|
Hi @TimGeyssens, We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know. For more information about issues and states, have a look at this blog post Thanks muchly, from your friendly Umbraco GitHub bot :-) |
|
Nice, thanks for the update @nul800sebastiaan "Date + time", "Date", "Time" , yes, not sure about the offset time setting... what do other folks think @bjarnef @madden-tom ? Good point about checking the starter kit, do we also need to consider UNO? |
|
FYI, these are the data types that are used by default Media/Member types... Umbraco-CMS/src/Umbraco.Web/Trees/DataTypeTreeController.cs Lines 84 to 99 in ecff240
|
|
Regarding Media Picker it would be great to keep it simple and not worry about start node (we need some content for this, which we don't have in a clean install). A simple "Date and time" and "Date" would also be useful. Not sure if we want "offset time" to be enabled/disabled by default. Maybe we would also have a Multiple Member Picker #7634 but in that case in with be fine to only have a single Member Picker by default. Some of the datatype instances are used in core. In past bad things would happen if you accidently deleted these - haven't checked recently if all core datatypes are locked 🙈 |
|
@leekelleher thanks :) @bjarnef guess locking would be a different issue? If it is possible to delete? |
|
I've had a quick skim over this and one thing I noticed is that Image Cropper was a default data type wasn't listed (I might have missed it and if so sorry), but that should still be created as the Image Media type needs it. IMO |
|
Yes we need that one :) , good call! |
Hey,
When you have a fresh Umbraco install, some datatypes are already in there. Some of these don't make sense to have (like a dropdown without options).
Others seem to be missing that could make sense:
single media picker
single image only media picker
single url picker
To get some more context on the request check this twitter thread: https://twitter.com/timgeyssens/status/1298231904827777024
The text was updated successfully, but these errors were encountered: