Hello everybody,
I would like to check, when someone wants to add a file or a bookmark, that this one is not already registered.
If this one already exists, is it possible to get the ID to associate this to the user ID ?
Regards,
CV
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- cvoeil@cvoeil
cvoeil - 0 likes
You must log in to post replies.This is not a default functionality. You need to consider access level - an bookmark might exist for a given URL, but it might not be accessible by another user adding it.
This can be done however. You will need to write event handlers and check bookmark's address metadata, and files can be compared by md5 checksum, you would probably need to add checksum as metadata when files are saved.
Hello Ismayil,
Thank you for your answer.
I thought I would have to use elgg_get_entities_from_metadata().
In fact, I would not be able to do that.
Shame !
Regards,
CV