statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

"Delete" button missing when a page serves as the "homepage" #1183

Open luchtech opened 1 week ago

luchtech commented 1 week ago

Hi!

I had a very odd experience when a page in a collection is set as the homepage. I was playing around with the Stumblr starter kit and I was finding a way to create a home page to see all the posts. While studying the repo, I found out that there's already an antler file for the homepage that I can use. So when I tried deleting the test homepage I created, I noticed that there's no "Delete" button.

After some chats at Discord, I found out that the "homepage" is somehow protected by default and that I have to set another page as the homepage first before deleting the test homepage.

So yeah, my request would be something like instead of not showing the "Delete" button for homepages, how about a greyed out "Delete" button with an info hover that says something like "Deletion is disabled for pages marked as the homepage."

I hope you can consider this request of mine. Thanks!