Content types already have a disabled property:
{
"_config_name": "node.type.page",
"type": "page",
"name": "Page",
"description": "Add a page with static content, like the 'About' page.",
"settings": {
...
},
"base": "node_content",
"module": "node",
"node_preview": "1",
"help": "",
"modified": true,
"disabled": false, <----- HERE!
"has_title": true,
"title_label": "Title",
"orig_type": "page"
}
But we are not exposing any way to enable/disable content types in the UI. Lets do that
Related article: Drupal 7: How to disable a content type
The database table where content types are stored is
node_type. And there's a columndisabledin it. We can disable a content type by changing the column value to1.
GitHub Issue #:
3883
Recent comments
I agree with @yorkshirepudding for new sites. Existing sites that use this "long text with summary" functionality already... not sure. There is an old core issue around this, too, it looks...
Use text editors in Summary Field
I always do a separate summary field for these reasons: Avoids the UI cludge of having either a summary or a trimmed value of body Allows summary to be mandatory...
Use text editors in Summary Field
It seems that while the summary field does not have a WYSIWYG editor. It does have the same text format as the main body field. Cutting and pasting content from the body field does not...
Use text editors in Summary Field