Show only related pages in “position” select

I’m basically creating a one-pager site but I assume these are never truly one-pager sites because there will probably always be separate pages for legal stuff etc. So, I have a template for home page sections and a default template for all other pages and I’m listing them as such in the panel dashboard:

sections:
  homepage:
    type: pages
    label: Homepage
    template: homepage
  pages:
    type: pages
    label: Other pages
    status: all
    template: default
  error:
    type: pages
    label: Error page
    template: error
    status: unlisted

The problem now is that if I’m changing the status of a page in a section, all pages/sections of the site are shown in the position select, which is quite confusing. Is there a way to only show the pages that are in the same section (probably filter that by template)?

The cleanest solution for such a setup would be to create the one-pager section pages as subpages of the home page, then you don’t run into this error and it simplifies the logic anyway, because you don’t have to filter out other (listed) pages in other places.

Right, I didn’t even think about that. I could still show the home page sections/entries right in the dashboard but internally they are subpages of the home page. Thanks, sometimes some outside perspective is very helpful. :slight_smile: