You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hippo Community
I am trying to use Selection component to add dropdowns that should list all documents of certain document types. For example, I am creating a new Document Type 'Category'. Now on category, I want to a dropdown field 'Parent Category' that which will list all existing categories. How to make Dropdown populate all documents? Thanks.
Jeroen Hoffman
unread,
Apr 7, 2017, 8:09:11 AM4/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hippo-c...@googlegroups.com
Hi,
The idea here is to
- create a CMS service that implements "org.onehippo.forge.selection.frontend.provider.IValueListProvider" and does a
JCR query for those category documents
- configure that service besides /hippo:configuration/hippo:frontend/cms/cms-services/DocumentValueListProvider, giving
it a custom id in valuelist.provider property
- reference it in your document field at
/hippo:namespaces/yournamespace/yourdocumenteditor:templates/_default_/yourfield/cluster.options/valuelistProvider
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hippo Community
Thank you Jeroen. I am new to Hippo CMS and evaluation it. I will give it a try. Is there a reason, there is not a generic list provider in the selection plugin that allows to set the document type to pull documents? It seems to be a very a common use case.