Setting up larger catalogs, I’m looking for a panel editor’s way to add many sub-pages at the same time.
I feel like it was once possible to just open multiple tabs of the Add Page[1] url. Currently, for adding multiple subpages, in the same tab you
click Add
enter new page credentials
arrive on a draft page
return to the parent page
repeat
which can get pretty confusing when initally setting up portfolios of many items and keeping drafts open or comparing data from other windows. Once the pages are set up, you can open these in new tabs.
Since most subpages contain images, I imagined adding a process hook on a custom “prepare subpages” file field: on saving the page, it would batch-create a sub-pages per image and remove them from the field. Alas this seems overkill for such a relatively simple UX demand.
Yes! Thank you @texnixe, you were correct and sorry: I was somehow just looking at the status: listed option, not the redirect: false possibility.
Ok, so to reiterate:
to prevent redirects on subpage creation, on the particular subpage template, you can modify
create:
redirect: false
to stay on the parent page and (since Kirby 4.1.) also prepopulate the title field e.g. with a custom callback method to quickly generate many items at once you can then open in separate tabs.
Also, the doc example of a shop is very fitting for this type of workflow.