Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
- The ' Display author and date information.' and other node-type settings for content types are ignored when unticked
- Steps to reproduce
- Create a content type
- Uncheck ' Display author and date information.'
- Create a node of that type
- View node in bartik theme
- Result:
Proposed resolution
Ensure that node options and submitted variables are written as booleans to the node-type config entity.
Update node-type schema to flag these as booleans.
Update NodeType::getExportedProperties to correctly type these properties (ConfigEntityBase ignore config schemas).
Remaining tasks
Reviews
User interface changes
None
API changes
None
Related Issues
None
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff.txt | 1.91 KB | larowlan |
#9 | node-settings.4.patch | 7.59 KB | larowlan |
#7 | interdiff.txt | 4.13 KB | larowlan |
#7 | node-settings.3.patch | 6.63 KB | larowlan |
#3 | interdiff.txt | 1.18 KB | larowlan |
Comments
Comment #1
larowlanwhoops
Comment #3
larowlanNode options not always available, meh
Comment #5
larowlanhot diggity dog, more fails in head because publish flag always defaults to yep.
Comment #6
kattekrab CreditAttribution: kattekrab commentedYep I stumbled on this bug too.
Comment #7
larowlanSome crazy stuff going on here.
Since these need to be booleans in the schema/config file, we need to massage the default values in the form controller.
As well as update the default node types in standard profile.
And the node default values.
Comment #9
larowlanhow about this?
Comment #11
tim.plunkettThis reads like a dupe of #2053461: Node type settings such as published state, promoted state, create revision and author information cannot be turned off, but the patch is completely different. Maybe they're both needed?
Also is this really against Bartik?
Comment #12
larowlanWhoops
Comment #13
larowlanComment #14
larowlanTeaming up in #2053461: Node type settings such as published state, promoted state, create revision and author information cannot be turned off