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?
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?
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.