Problem/Motivation
1. I want a new content type
2. I clone the page content type to `news` (same configuration now)
3. I update automated list to allow filtering by new content type
4. I go to page: - default node template is showing for each result with new content type
Proposed resolution
We use content type specific template names:
- node--civictheme_page-civictheme-navigation-card.html.twig
- node--civictheme_event--civictheme-navigation-card.html.twig
But we could do:
node--civictheme-navigation-card.html.twig
And so every new content type we create will work with this template.
Remaining tasks
1. Create new node templates for our node view modes use the `node--civictheme_page-*` as the base template:
- node--civictheme-navigation-card.html.twig
- node--civictheme-promo-card.html.twig
- node--civictheme-slider-slide.html.twig
Comments
Comment #2
richardgaunt commentedComment #3
richardgaunt commentedComment #4
fionamorrison23 commentedComment #5
alex.skrypnykThis is a great idea!
It also would be great to document how to override these for more specific content types.
Comment #6
fionamorrison23 commentedComment #7
fionamorrison23 commentedComment #8
fionamorrison23 commentedComment #9
richardgaunt commentedComment #10
richardgaunt commented