[Hippo-cms7-user] Dropdown Plugin

Jeroen Hoffman j.hoffman at onehippo.com
Tue Nov 17 16:21:18 CET 2009


Frank van Lankvelt wrote:
>>>> I think that this is due to a missing property under /hippo:namespaces/system/DynamicDropdown/editor:templates/_default_/root.
>>>> Could you try this: add a String property 'valuelist.provider' with value '${valuelist.provider}'? I hope this will pass this property from the cluster.options subnode, like is done with the 'source' property. If
>>>> correct, this should be incorporated into a new version of dropdown.
>>>>
>>> I added the property but unfortunately it does not make a difference. It
>>> looks like config.getString(IValueListProvider.SERVICE) returns null.
>>>
>>> Any other suggestions?
>> It looks like it, yes.
>> Sorry to say I'm lost here, certainly because for instance the 'source' property has the same setup and is found..
>>
>> Any clues by CMS guys perhaps?
>>
> I was a little confused by some of the comments in the thread, so
> maybe I'm off target.
> 
> The setup should be something like
> 
> /hippo:namespaces/mynamespace/mytype/editor:templates/_default_
> + list plugin (or other layout)
> + ...
> + field plugin
>   + cluster.options
>       - valuelist.provider = service.valuelist.myprovider
>       + valuelist.options
>           - source = /path/to/valuelist/document
> 
> /hippo:namespaces/system/DynamicDropdown/editor:templates/_default_
> - frontend:references = { engine, wicket.model, valuelist.provider }
> - frontend:properties = { mode, valuelist.options }
> + root
>     - valuelist.provider = ${valuelist.provider}
>     - valuelist.options = ${valuelist.options}
> 
> So the dynamic dropdown plugin acquires the values that are specified
> in the document template.  It should be able to resolve the service if
> that has been made available in cms-services.
> 
> A demo cms would be a good way to document what a correct setup would
> look like.  Should give your users some confidence in the plugin...
> 
> cheers, Frank
> 

Thanks for feedback Frank, this setup should be checked against the code because 
I think is not completely implemented as such.

Jeroen



More information about the Hippo-cms7-user mailing list