Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

App Spec: Tagging ownCloud files #1124

Closed
tanghus opened this issue May 22, 2013 · 14 comments
Closed

App Spec: Tagging ownCloud files #1124

tanghus opened this issue May 22, 2013 · 14 comments

Comments

@tanghus
Copy link
Contributor

tanghus commented May 22, 2013

As mentioned in owncloud/core#3249

It would be a big improvement having the chance to tag documents and be able to search/group them using tags.

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.

@fpiraneo
Copy link

I'm working on tagging documents on owncloud. The project is just on early stage and needs lot of work. I'll keep you posted.

schermata 2014-02-16 alle 22 44 48

schermata 2014-02-16 alle 22 45 15

schermata 2014-02-16 alle 22 45 27
Look at the "Info" icon on the file manager.

@tanghus
Copy link
Contributor Author

tanghus commented Feb 17, 2014

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

@fpiraneo
Copy link

Any suggestion is welcome; can you be more specific about? I'm developing for OC6.

@tanghus
Copy link
Contributor Author

tanghus commented Feb 17, 2014

@fpiraneo the interface is here: https://github.com/owncloud/core/blob/master/lib/public/itags.php
The JavaScript library is here: https://github.com/owncloud/core/blob/master/core/js/tags.js
An example of how to use the PHP implementation can be seen here: https://github.com/owncloud/contacts/blob/master/lib/controller/groupcontroller.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?

@tanghus
Copy link
Contributor Author

tanghus commented Feb 17, 2014

It would probably be easiest to use the JS library

@fpiraneo
Copy link

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.

@Olen
Copy link

Olen commented Feb 18, 2014

Tagging of photos - with tags doubling as "albums" (that can then be published or shared) would be a really great option!

@tanghus
Copy link
Contributor Author

tanghus commented Feb 23, 2014

actually I did the job without considering the existing tag "structure" on owncloud;

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.

@fpiraneo
Copy link

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!
Despite I don't think it corrupts data, be careful when using it with production data! ;-)

@karlitschek
Copy link
Contributor

Sweet. @fpiraneo Do you want to share you app here on github?

@fpiraneo
Copy link

Already done! ;-)

https://github.com/fpiraneo/oclife

@karlitschek
Copy link
Contributor

@fpiraneo Nice!!! Are you interested in develop this in an app in the owncloud group? :-)

@karlitschek
Copy link
Contributor

Hi @fpiraneo Are you interested in joining the discussion here: owncloud/core#3812
Would be great!

@jancborchardt
Copy link
Contributor

This is superseded by the thread in owncloud/core#3812, closing this hence.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants