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
Thank you all for the quick help - or trying to. And I apologize for not properly documenting this seeming flaw in Backdrop. I was too eager to find a work-around (cannot have a non-...
Paypal button code gets messed-up
Yes Olaf, Works in most cases, but not with what was in the field originally (sorry, that is now deleted). I think it was very similar to this, and the paypal code was added at the...
Paypal button code gets messed-up
This is orig. code. Backdrop removes the form action and insert an end-form later (or move it down). Hm, this works for me. I've set up a new text format (at admin/config/...
Paypal button code gets messed-up