Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Exclude templates from page section

Following this discussion from the forum:
https://forum.getkirby.com/t/ability-to-exclude-templates-from-page-section

We will be able to make:

templates: 
  - !home
  - !error
4 years ago
1
Changed the title from "Ability to exclude templates from page section" to "Exclude templates from page section"
4 years ago
1

If the user both chooses and exclude, unnecessary queries will call. It will always be necessary to call all templates/blueprints to check the templates that the user excludes.

For ex:

templates:
  - default
  - !home
  - !error

It may be better to use a separate prop like excludedTemplates or something like that. For ex: templates prop will ignore if excludedTemplates defined.

4 years ago

I keep running into this issue and I’m never happy with the workarounds. Big upvote…

4 years ago
1

@Nico What would it be like if it simply supported the query language?

2 years ago
2
Changed the status to
In upcoming releases
a year ago
Changed the status to
Completed
a year ago