How best to create a "Description" tab for the right side fly-out menu?

I’d like to add a “Description” tab on the right side fly-out menu which slides in when you click on a file in nextcloud. One example of a use case would be when you upload a whole bunch of video files from a camera. NC doesn’t create thumbnails for these (At least on my server) so all I see is a “[>]” icon.

Yes, tagging would be one way to do it, but then you’re really limited to a specific keyword and not actually a description of what the file is. For instance, if I were a photographer, I may work several weddings over the course of the year. Simply tagging videos with “Wedding” doesn’t help when a customer says “Please send the video from my wedding where Bill has his pants on his head and is doing the chicken dance”

I’ve managed to hack together what I want by copying files from the Comments app into the theme directory (see screenshot below). As it turns out though, to get this right I think I need to create a whole new NC application (based on the Comments app perhaps) complete with database structures and everything.

Without hacking up the Comments app, Is there a tutorial/tips on how to create a proper app and register it in the fly-out menu?

Yes, create a small app that would add the desired functionality. You can find some useful information about app development at https://docs.nextcloud.com/server/10/developer_manual/app/index.html.

Regarding the sidebar, I think it’s best to have a look at the other sidebar entries and how they register their tab since I doubt that it is documented somewhere.

Regarding the sidebar, I think it’s best to have a look at the other sidebar entries and how they register their tab since I doubt that it is documented somewhere.

That’s the bit I can’t figure out. For the Comments app, there is only an extension.php and listener.php under the apps/comments/activity directory. I would assume PHP would be used to register for the sidebar rather than javascript.

The link you provide, under the ‘Hooks’ title, shows using a __contstruct() and register() function to establish a way of running code when something happens. Would this be the best place to start poking around?

It seems the plugin is registered here https://github.com/nextcloud/server/blob/b30c79b63c23061923daeeb73236d294d5073354/apps/comments/js/filesplugin.js#L123 in JavaScript. The custom tab is then opened here https://github.com/nextcloud/server/blob/b30c79b63c23061923daeeb73236d294d5073354/apps/comments/js/filesplugin.js#L104.

Ok, that’s one of the files I had experimented with to get my “Descriptionz” tab to show up.I don’t fully understand all the code in there (I’ve never used Handlebars for instance) but I think I may have enough pieces to tie my own Nextcloud app into the sidebar. I appreciate you taking the time to point me in the right direction.