-
Notifications
You must be signed in to change notification settings - Fork 335
App Spec: Tagging ownCloud files #1124
Comments
@fpiraneo cool. The interface has changed quite a lot in oC 6 and the JS interface should be better. If you need changes/updates please let me know.. |
Any suggestion is welcome; can you be more specific about? I'm developing for OC6. |
@fpiraneo the interface is here: https://github.com/owncloud/core/blob/master/lib/public/itags.php I'm not sure which ID to use for documents. It just has to be a persistent, integer id. I don't work with files myself, but I think they have a unique id. @DeepDiver1975 are you into the specifics of those? |
It would probably be easiest to use the JS library |
Hi, thank you for your precious indications; actually I did the job without considering the existing tag "structure" on owncloud; may be we will change on the next future. In the meanwhile take a look at my project at https://github.com/fpiraneo/oclife . Everything is experimental not suitable for production environment. I'll create also a more extended documentation in the next future with a TODO list. |
Tagging of photos - with tags doubling as "albums" (that can then be published or shared) would be a really great option! |
There's not really a tag structure - just a library that has been tested to a great degree in the contacts app - which is currently the only app using it seriously. Calendar app uses it too, but not for anything really functional for the end user. |
Ok, now my app is on the ownCloud store at http://apps.owncloud.com/content/show.php/oclife?content=163845 ; any comment and feedback is apreciated! |
Sweet. @fpiraneo Do you want to share you app here on github? |
Already done! ;-) |
@fpiraneo Nice!!! Are you interested in develop this in an app in the owncloud group? :-) |
Hi @fpiraneo Are you interested in joining the discussion here: owncloud/core#3812 |
This is superseded by the thread in owncloud/core#3812, closing this hence. |
As mentioned in owncloud/core#3249
This can perfectly well be implemented as an app, and it shouldn't be that hard to do, thus marking this as a Junior Job.
The backend used for categories in Calendar and Contacts app (Groups in Contacts), was originally meant to be only for VObjects (VCARD, VEVENT, VTODO, VJOURNAL), but should be perfectly good for other objects using an integer ID as primary key, which is what is used in oc_filecache.
The backend used is in https://github.com/owncloud/core/blob/master/lib/vcategories.php and I use a basic controller for contacts in https://github.com/owncloud/contacts/blob/master/lib/controller/groupcontroller.php
There's also a JavaScript interface for it, but tbh. I'm not sure of the state of it https://github.com/owncloud/core/blob/master/core/js/oc-vcategories.js
The backend also allows for Favoriting items as requested in #1080
For searching you can make a simple app that registers a tag search provider by subclassing OC_Search_Provider.
To integrate it into the files app you can register a FileAction
For anyone interested in coding this feel free to ask for help.
For anyone wanted to argue for adding this: Don't 😄 I think all has been said in owncloud/core#3249 - however comments on implementation are of course welcome.
The text was updated successfully, but these errors were encountered: