Description of the need This is a long standing confusion. In Drupal there are multiple issues for this:
- https://www.drupal.org/project/drupal/issues/502430
- https://www.drupal.org/project/drupal/issues/848470
- https://www.drupal.org/project/drupal/issues/2862291
The first issue describes it well:
It is somewhat disconcerting to users who have the 'administer book outlines' permission to see the 'outline' tab and 'outline' fieldset on every single node type, regardless of whether that node type has been configured to be allowed in books. I can see a use-case where that might be a desired feature, but i think its probably relatively rare.
Note, that book module seems to be the oddball here. If you disable menus for a content type not even user 1 has ability to add them to a menu from within the content type.
Proposed solution
Create an additional checkbox in the content/book/settings form that when checked allows book outlines for any content type, not just the designated book-types. By default this is checked, so that any current sites that might rely on "seeing outline information on all content types regardless of config settings" won't be broken by this after upgrading.
Recent comments
when i check the classes, i found inside Layout class: /** * The main array of configured blocks, keyed by a generated ID per instance. * * @var Block[] */ var $content = array...
How to hide block titles in certain regions
Layouts and themes are different in Backdrop CMS and some of the $variables attributes you are looking for are not there; that is why your function is not working. What I suggest is to install the...
How to hide block titles in certain regions
Unfortunately, I'm not familiar with preprocess functions. If you're open to use a CSS workaround, you could do something like this: .header-top .block-title, .search_box .block-title, .footer...
How to hide block titles in certain regions