Hi there! I’m currently setting up a new site on v5, and loving the new panel view buttons functionality. However, I’m trying to add a “New Page” button on the main Site view (as I’ve got multiple different page sections on the site dashboard, and want one clear, consistent CTA for creating a new page). But I can’t quite figure out how.
So far I’ve tried including it through my site.yml blueprint, using query language or the “pages/create” route (which doesn’t seem to be accessible here) to bring up the pages.create dialog. I’ve also tried a new route in my config file, but can’t quite figure out how to extend the existing pages.create method.
So, question is, is this type of functionality possible? If so, is there a clear and simple way to do this? (Also entertained the custom plugin route, but that seems overkill for what I’m trying to do here…) Am I missing something obvious? 
All help appreciated in advance! 
Is there the possibility to have a section that would serve as the “host” for these new pages? Then you could add the dialog route for this pages section to your view button (or even side menu button) to open the dialog as well.
Ope — was missing something obvious. I was trying to use the link to tie into the page.create route, when I needed to use the dialog option. Totally missed that somehow.
@distantnative thanks for the tip, your comment led me to the right place in the docs where I realized my mistake! To answer your question, I do have a section in this view that contains new (draft) pages, as well as published. And the draft section has its “Add” button of course, but I just want to have a more prominent, top-level button within the panel that my admins can use to create a new page.
For posterity (in case anyone’s trying to accomplish the same thing as I was), here’s the code I used in my site.yml file to create the “Add Page” button:
# Blueprint for the site dashboard
title: Site
buttons:
pages.create: # Adds a new "Add Page" button
icon: plus
text: "Add Page"
dialog: 'pages/create'
theme: blue-icon
site.open: true # Leaves the "Open" button available
site.preview: true # Leaves the "Preview" button available
...
Thanks for the help!