Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every child is excluded once a page has been excluded. #29

Open
zvaehn opened this issue Jul 16, 2019 · 1 comment

Comments

@zvaehn
Copy link

commented Jul 16, 2019

I have a multiple sibling pages for categories and i dont want them to be indexed, so i wrote the exlude rule:

'excludePageWhenTemplateIs' => ['category']`

Unfortunately this excluded all products as well, so i tried to add them via the addPages closure:

'addPages' => function() {
      $pages = new Kirby\Cms\Pages;
      return $pages->index()->filterBy('intendedTemplate', '==', 'product');
}

Folder Structure:

|-- Category 1
|---- Product 1
|---- Product 2
|-- Category 2
|---- Product 3
|---- Product 4

Am i missing something or is this intended behavior?
Any help is appreciated.
Sven

@foxacid

This comment has been minimized.

Copy link

commented Oct 16, 2019

I'm having the same issue for a very similar use case with excludePageWhenSlugIs. A fix would be very much appreciated. Thanks for a great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.