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
When there are thousands of links to be listed, it is better to split the map. Otherwise, hreflang is a good choice.
xmlsitemap module generates wrong links for languages
I don't fully understand why someone would need multiple sitemaps for different languages, but you certainly know better. Good luck!
xmlsitemap module generates wrong links for languages
Easy xml sitemap doesnt seem to offer multiple sitemaps for different languages, otherwise it seems a good solution for a single sitemap but then it doesnt make sense to exclude languages at all...
xmlsitemap module generates wrong links for languages