Filtering for a Startteaser


i have create checkbox in my panel, where i wanna filtering a page that should be displayed
on the start page. How i can integrate this into my template, so i would try this:

$nom_list = page('nominees')->children()->visible()->filterBy('frontpage', '1');

But the problem is i have to switch it always of, when a new project get on the frontpage. Is there a better way? Or can i write the pageid into a the home panel, to link to a project?

In this case just a single select, without using a structure field.

1 Like