Integrate an external image server into the imagepicker

174 views
Skip to first unread message

Anna Chuchracky

unread,
Jul 4, 2013, 6:00:16 AM7/4/13
to hippo-c...@googlegroups.com
Hello folks,

I need to integrate an external image server into the Hippo CMS.
Is it possible to modify the imagepicker to access images of the external image server?

I would be happy if you can point me to documentation on that topic.

Regards

Anna Chuchracky

Tobias Jeger

unread,
Jul 4, 2013, 6:51:15 AM7/4/13
to hippo-c...@googlegroups.com
Hi Anna,

I can think of two solutions. The simple one is to only work with image URLs on the Hippo side. That would not need an image picker at all, the URL could simply be stored in a string property. But that's not very user friendly.

The second one is more user friendly: In the CMS, use an image picker which has the capability of browsing through the image library on the external image server. I have limited experience with the CMS' image picker, but what I remember is that it is aware of Hippo's concept of image sets, does the external server have a similar thing? I don't know how tightly the image picker is tied to the JCR repository (dealing with "nodes"), that may be another complicating factor. I'd guess that the second approach is one to two orders of magnitude more complex than the first one.

Maybe someone else knows if the current image picker has extension points for adding support to deal with images from other sources than the Hippo repository?

HTH

Tobi



--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
Most Hippo developers are active here and/or follow the Stackoverflow [hippo-cms] tag.
 
The old Nabble archive can be found here: http://hippo.2275632.n2.nabble.com/Hippo-CMS-7-f2274273.html
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 101 Main Street, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

Jasper Floor

unread,
Jul 4, 2013, 7:19:26 AM7/4/13
to hippo-c...@googlegroups.com
The current image picker is only for internal hippo links. So I'm guessing you want to store urls to the external image. I'm not sure extending the linkpicker is what you want, but it is possible. However, since you bascially want to store something other than a link to an internal document I think you are better off writing a new picker from scratch. I think it would be more work adjusting the linkpicker to ignore what it does and do something else. It is basically just a RenderPlugin. All logic for connecting to an external server and displaying the contents will have to be written anyway. Take a look at the GalleryPickerPlugin for inspiration, but just start fresh. You can set the plugin to use in the editor:templates of the namespace entry.

mvg,
Jasper

Kenan Salic

unread,
Jul 4, 2013, 7:37:46 AM7/4/13
to hippo-c...@googlegroups.com
We done this a couple of times. We created a new plugin, similar to the GalleryPickerPlugin or PropertiesPlugin (String) which open's up a new org.hippoecm.frontend.dialog.AbstractDialog implementation.

I think the best open source example we have for this is in the external resource plugin in the following folders:

Whenever we open the dialog and choose an external image (via REST etc) we save the id or the url as a property of the document.

Good luck,

Kenan

Boston - 1 Broadway, Cambridge, MA 02142

Kenan Salic

unread,
Jul 4, 2013, 7:39:22 AM7/4/13
to hippo-c...@googlegroups.com
And some visuals how the external resource / mediamosa plugin works: http://www.youtube.com/watch?v=COm-W5uwUkI
Reply all
Reply to author
Forward
0 new messages