Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Layout lookup should consider root and current section's type if set #4891
You can currently set
type: pretty layout: two-colums
In every content page, list and single pages. Which makes it flexible. But if you take the base layouts into account, it is hard to create a couple of reusable templates that can be applied to new sections on demand (without creating duplicates):
If I set this in
Then I want that type to be in the template lookup order (before the most general ones) for both that section and other pages in that section.
This means that if I create
This behaviour matches what we do with the
So we add
In that order.
I have enabled this for page + section right now. Will have to think about this a little bit. Testing it and it wasn't that powerful as I hoped -- but that is because of the baseof resolution. I will create another issue for that.
Note to self: For taxonomies, make sure this does not resolve to list.html in the type override folder.