Hi Wim,
In my project, I used External Document Field Picker plugin [1] to be
able to select multiple hippo internal documents. External document
picker is simply invoking your facade interface implementation and it's
agnostic to how to handle the data, but focusing only on UI.
In my use case, I needed to let end users be able to select multiple
link documents in a picker dialog.
So, I was able to use it in one of my project, by extending some core
classes of the plugin, successfully.
HTH,
Woonsan
[1]
http://exdocpickerbase.forge.onehippo.org/field/architecture.html
On 7/10/15 6:58 AM, Wim Lustenhouwer wrote:
> Hi Marijan.
>
> Thanks for the tip. I guess I should explain the full use-case. I am a
> junior Developer fresh from college working in a Hippo team. I have a
> personal project that allows me to try out creating functionalities so I
> can be more effective in actual customer-projects, so I’ll take your
> comment to heart when you say that this is not a common scenario.
>
> Having said that let me explain what I’m trying to accomplish.
> I’m writing a cms to administer a video-game database.
>
> Certain video games can interact with physical toys called Amiibos.
> These amiibo’s are saved as documents too. Amiibo’s come in various
> forms and individual amigo’s can work on multiple games.
>
> Now I have one game called smash brothers that work with 60-something
> specific amiibo’s. I have another game that works with 57 amiibos/ Out
> of those 57, 3 don’t work work with the smash brothers game.
>
> So basically. I figured that I needed to link an amiibo document to a
> game document. But It would be quite cumbersome to open a dialog 60
> times, so I thought Why not either have a multiple select, or a single
> button to select all and then de-select certain toys.
>
> Again, this is for a personal project that helps me get a good grip on
> Hippo-development. So I’ts low priority. But for what little I have done
> with databases, mulitple on multiple tables have been a common case.
> Which is why i thought this would be a usefull issue to tackle.
>
>> Op 10 jul. 2015, om 10:42 heeft marijan milicevic
>> <
m.mil...@onehippo.com <mailto:
m.mil...@onehippo.com>> het
>> <mailto:
wim.lust...@finalist.com>> wrote:
>>
>> Thanx a ton all. It seems I’m in way over my head. I’ll try a
>> fully different way to handle this.
>>
>> I do wonder though. Shouldn’t being able to select multiple
>> documents from the dialog be a standard feature? It speeds up a
>> ton of processes greatly. And I don’t really see what drawbacks it
>> might have. I have seen however that it isn’t really easy to
>> implement through the current selection tools.
>>
>>
>>
>> I’m considering writing an updater script that takes all documents
>> from a user selected folder and add it to a user selected document
>> that way.
>>
>>
>> why just not select folder and list documents by code?
>> Linking more than, lets say 5 documents, is not very common case (and
>> I've seen many Hippo projects since I work here),
>> Another look at your application model might save you (and the end
>> user) a lot of work.
>> cheers
>> marijan
>>
>>
>>
>>
>>
>>
>>> Op 6 jul. 2015, om 11:46 heeft Jasper Floor <
j.f...@onehippo.com
>>> <mailto:
j.f...@onehippo.com>> het volgende geschreven:
>>>
>>> I'm afraid it is a bit of wicket coding you have to understand.
>>> It builds your view and attaches actions to it which can be
>>> called later (like when you press a button). Take a look at the
>>> MirrorTemplatePlugin as well. I'm working on 7.9 atm so if I say
>>> anything that doesn't match it's because I'm referencing old
>>> code, but that shouldn't matter for these plugins I think. The
>>> MTT reuses some things from the LinkPickerPlugin so it may help
>>> understanding how to customize it.
>>>
>>> More than that it becomes really detailed. Once you get Wicket it
>>> should become easier.
>>>
>>> mvg,
>>> Jasper
>>>
>>> On Fri, Jul 3, 2015 at 4:37 PM, marijan
>>> milicevic <
m.mil...@onehippo.com
>>> <mailto:
m.mil...@onehippo.com>> wrote:
>>>
>>> On Fri, Jul 3, 2015 at 4:26 PM, Tobias
>>> Jeger <
t.j...@onehippo.com <mailto:
t.j...@onehippo.com>> wrote:
>>>
>>> I figured so much after reading the other thread, but
>>> have no cheaper advice than Jasper's...
>>>
>>>
>>> ;-)
>>>
>>> some hints:
>>> you'll most probably need to override existing grid and
>>> probably add checkboxes or something similar [1].
>>> I've built similar grid for hippo console [2] (Delete * or
>>> multi node delete), which works with CTRL + click multiple
>>> selection,
>>> however without select all implementation, but that would be
>>> easy to implement (e.g. by adding a shortcut or "Select all"
>>> checkbox
>>>
>>> cheers
>>> marijan
>>>
>>>
>>> [1]
http://www.wicket-library.com/inmethod-grid/data-grid/item-selection
>>> [2]
http://localhost:8080/cms/console/
>>>
>>>
>>>
>>>
>>> On Fri, Jul 3, 2015 at 4:21 PM,
>>> wim.lustenhouwer <
wim.lust...@finalist.com
>>>
www.onehippo.com <
http://www.onehippo.com/>
>>>
>>>
>>> --
>>> Hippo Community Group: The place for all discussions
>>> and announcements about Hippo CMS (and HST,
>>> repository etc. etc.)
>>>
>>> To post to this group, send email
>>> to
hippo-c...@googlegroups.com
>>> <mailto:
hippo-c...@googlegroups.com>
>>> <mailto:
hippo-communi...@googlegroups.com>.
>>>
www.onehippo.com <
http://www.onehippo.com/>
>>>
>>> --
>>> Hippo Community Group: The place for all discussions and
>>> announcements about Hippo CMS (and HST, repository etc. etc.)
>>>
>>> To post to this group, send email
>>> to
hippo-c...@googlegroups.com
>>> <mailto:
hippo-c...@googlegroups.com>
>>> <mailto:
hippo-communi...@googlegroups.com>.
>>> <mailto:
hippo-c...@googlegroups.com>
>>> <mailto:
hippo-communi...@googlegroups.com>.
>>> <mailto:
hippo-c...@googlegroups.com>
>>> <mailto:
hippo-communi...@googlegroups.com>.
>> <mailto:
hippo-c...@googlegroups.com>
>> <mailto:
hippo-communi...@googlegroups.com>.
>> <mailto:
hippo-c...@googlegroups.com>
>> <mailto:
hippo-communi...@googlegroups.com>.
> <mailto:
hippo-communi...@googlegroups.com>.
w....@onehippo.com www.onehippo.com
Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
Amsterdam - Oosteinde 11, 1017 WT Amsterdam