Differentiate a post on section's Pages


On one Pages, i create multiple page/post and i wanted to show (on my panel) in different block depending on a specific field. How i can have ?

Hm, in a standard pages section, you cannot filter pages by anything other than template, status or parent. You would need a custom section likes the Pagesdisplay section plugin. The downside of using this plugin as is is that it does not support creating new pages. You would have to extend it to allow that (or add a standard pages section for new pages).


In panel, if i have one page “Fimography” with subpages (“Movies”, “Clips”), i can make a “section” with template filter fort show posts of subpages ?

And other question, in template page, can you filter with a field filter as a select type field ?

Yes, you can filter by the subpages by template in a pages section.

I don’t quite understand what you mean?

Sorry, i’m a french speaking. I try again :slight_smile:

In my template file “Filmography”, how should I filter each section (“Movies”, “Clips”) or a specific field?

Don’t worry. We will get there.

You can filter by a field if you want to have different sections, e.g.

$page->children()->listed()->filterBy('category', 'movies');

If you want to render all children and let the user filter the films by category, you have different options, from a standard select input to purely CSS or JS solutions.

You might want to check out our filtering recipe: https://getkirby.com/docs/cookbook/content/filtering