My question is also around that widget in the panel.
My users would prefer to see the slug instead of the page title in the list as they are used to navigating that way. It also makes it easier if they are trying to get to /foo/bar to just click on foo and bar instead of having to remember what foo and bar are called.
So, I’m curious about replacing that widget. If I create a widget of the same name with almost the same functionality, will the system use mine instead?
There is no sidebar widget that you can overwrite with another widget. The code for what is shown in the sidebar is in a snippet in /panel/app/snippets/pages/sidebar/subpage.php
I created a directory in site/widgets called pages. In that directory I copied the pages.php and pages.html.php from the panel/widgets/pages directory.
I also copied the snippet from panel/snippets/pages/sidebar/subpage.php to site/snippets/panel/subpage.php and adjusted pages.html.php to load it instead with the snippet function. (instead of the panel snippet function)
Yeah, on the actual pages themselves, this trick doesn’t work. I see that the OP was asking about something else. I naively assumed it was all the same snippet/widget being reused.
Oh well, at least they’ll be happy about the first click.
As always, thanks for the fast and helpful replies.