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 columndisabled
in it. We can disable a content type by changing the column value to1
.
GitHub Issue #:
3883
Recent comments
With the help of the Backdrop office hours crew, I was able to figure out a solution that works for me. I just added an explicit format setting to the long-text field before saving it,...
Is there a way to programmatically enable CKEditor5?
Have you tried adding a symlink pointing at the new location, within the ROOT/themes folder?
Refactor code
Yes, I mean something similar to Seven/Bartik/etc , but in another location. And yes, I've tried it, and it's not found. So I figured that there may have been a hook to load it or load it's...
Refactor code