Hey folks. We have a custom app that was implemented prior to the changes in v28 to the Files app, which adds a tab and icon to the Files action section (i.e. the snowflake in the following screen shot) and the tab opens similarly to the Sharing tab, and provides app-specific functionality.
The most recent tutorial covering File plugins is deprecated, and despite finding some old comments that folks are working on a new version (circa 2022) I can’t find anything up-to-date.
The only details I can find simply cover adding menu items to the ellipsis menu, which is not what is needed.
Can anyone point me to documentation or examples that could help us update our app to be compatible with the v28+ changes?
With the caveat that I’m not an expert on the front-end, I believe everything you’re looking for is in @nextcloud/files and @nextcloud/vue (e.g. NCAppSidebar). You can poke around at their respective docs here and here.
Thanks. I am aware of these documents and can of course dive into the code, but was hoping to find a proper tutorial and/or example of how one can add a custom application tab to the Files view. Though, if nothing better is discovered, I will just need to dig into existing code for clues.
I don’t know of a tutorial focused specifically on adding a sidebar and/or extending the UI with new inline columns within Files itself. So, yeah, your best bet is probably finding one of the apps that already does something similar.
Consumers of the NCAppSidebar are pretty easy to come by since lot of apps do that. As for the icon/additional column, two apps that come to mind are files_sharing and the systemtags app. The latter’s inline implementation is here.
Again, disclaimer as I’m more involved in the back-end, but I don’t believe I’m leading you astray. hah