πΊπΈUnited States b0b Bethlehem, PA
I'm getting the same behavior on a view without a contextual filter. Facets are not working at all after enabling pretty paths.
πΊπΈUnited States b0b Bethlehem, PA
Or you could skip this module completely if you just add this code to your THEMENAME.theme file.
Then use block--bundle--block-name.html.twig as your template name.
/**
* Implements hook_theme_suggestions_HOOK_alter() for form templates.
* @param array $suggestions
* @param array $variables
*/
function YOURTHEMENAME_theme_suggestions_block_alter(array &$suggestions, array $variables) {
// Block suggestions for custom block bundles.
if (isset($variables['elements']['content']['#block_content'])) {
array_splice($suggestions, 1, 0, 'block__bundle__' . $variables['elements']['content']['#block_content']->bundle());
}
}
πΊπΈUnited States b0b Bethlehem, PA
+1 for this feature. Or another way to configure this might be to Enable/Disable content types within the Section Library admin.
πΊπΈUnited States b0b Bethlehem, PA
Thanks for the hook. That is helpful for me, but code is not an option for everyone. I would argue this isn't really asking for a new feature. It's just config for a feature that already exists, collapsing categories by clicking. :)