Hello there,
in pages section, when creating a new page, I have a few templates to choose from, but I want to show them all via list of radio buttons instead of a dropdown.
How can I achieve that please?
Blueprint:
contentPages:
image: icon
type: pages
layout: list
search: true
templates:
- modular-custom-page
- portal-page
- gallery
Hello @distantnative thank you for you reply. Trying it but with no result at all:/
I think it is not " page.changeTemplate dialog", its page create dialog, cause I am using this dialog when creating a new page and I have few templates to choose from (and I want to show them via radio button instead of a default dropdown).
Can you please provide a hint what I have to overwrite now?
Ah sure, in that case you actually have to jump over to the frontend part of the Panel and override the k-page-create-dialog
component: kirby/panel/src/components/Dialogs/PageCreateDialog.vue at main · getkirby/kirby · GitHub .
Please keep in mind that with this you’re really going into modifying the core which can break a lot more often/require maintenance when later upgrading Kirby. I wouldn’t recommend it if this doesn’t feel super easy for you, so it’ll be easy to maintain down the road.
Oh, looks like a harder task than I thought. I can’t even find the PageCreateDialog.vue file in my installation:)
And from your reaction, I guess I can’t overwrite it with the custom plugin, right?
You have to overwrite it with a custom plugin and there add it as component. You won’t find the file in your Kirby download as all vue files get compiled and bundled. But you can see it on GitHub.
If somebody is interest to make this as a plugin for me, please DM me.
It may be a benefit for some to be able to pay in bitcoin (ideally via lightning, but not a requirement).
It has to work both in Kirby 4 and 5.