I’d like to move the files sub-column on the left of a panel page, to be the main field of a panel page.
My use case is to build a page where you drag and drop files (images), and simply add metadata to each file, instead of making a subpage for each image.
Is there a way to modify the layout / css of a specific blueprint page? Or how else should I go about this?
I dont think this is possible because it actually means messing with Kirby itself, the blueprint can just turn the files sidebar on or off. You might be able to get so far with a custom panel CSS file but as far as I can tell there is no way to target a specific page template in the panel - if you change it, it will change everywhere.
Im not sure what you mean by creating a page for image - you don’t need to. You can add them all to one page and use file meta data to add details to each one.
It might be possible to make a dashboard widget that uploads and lists out images from a particular page.
Alternatively you could make a custom field that lists out the images and hide the side bar. The whole page is a target for drag and drop. so i think in theory, you could somehow hide the sidebar and still be able to upload via drag and drop.
Actually I have just thought of a cheeky little way you can do this. Make a hidden lister page in the front end, to run out a list of all the images you want from the page you want, and use front end edit links to jump directly to the images edit screen in the panel…
Wrap your images in a loop in this code…dynamically replace FILENAME in the code with the filenames on your page, and it should take you straight to the panel page for that image in a new tab, as long as your logged in.
<?php if ($user = $site->user() and $user->hasPanelAccess()): ?>
<a href="<?php echo $site->url() ?>/panel/pages/<?php echo $page->uri() ?>/file/FILENAME/edit" target="_blank" title="Edit content" class="admineditlink">
EDIT THIS IMAGE
</a>
<?php endif; ?>
The beauty of this way is you could actually list all the images on the site and have a way to edit them all… and check if images have any missing meta from one place…
turned out that due to other constrictions, or maybe good things, i can’t opt for the idea i outlined above — so no need to make the files column the main page column…