New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RelationList widget does not get populated without specifying form.widget. #5
Comments
I observed the same behavior in some other cases but was not able (or too busy) to track down the reason. For Plone 5 setting the widget is not necessary anyway so I removed that and replaced ObjPathSourceBinder with |
Related: 4ea3cd8 and plone/plone.app.dexterity#200 |
sweet! |
As a further refinement, I'd like to figure out if there's a way to filter on items that actually have a banner image, not just that they provide |
@fulv good point. My first guess would be that this can only be achieved with a new boolean-index and a custom indexer that stores True if there is a banner-image. |
@fulv ... or with a custom vocabulary. It would be cool if the widget could show a preview of the banner-image if there is one. |
I'm using this for a client project, so I will definitely add the index. I noticed that the TinyMCE image picker shows thumbnails (see screenshot). At this point, this is mostly out of curiosity, because a) I agree that it On Thu, Dec 3, 2015 at 7:04 AM Philip Bauer notifications@github.com
|
Done! |
@pbauer got any idea why the
slider_relation
widget comes up empty if I don't use theform.widget
directive?Without
form.widget
, the widget gets rendered fine, but it's empty. The key piece making it work is thevocabulary
.Somehow, the
ObjPathSourceBinder
does not seem to do its job. I tried using aportal_type
filter, instead ofobject_provides
, does not make a difference. The portal_catalog has plenty of objects indexed withobject_provides=IBanner.__identifier__
.Basically, this is the same as http://docs.plone.org/external/plone.app.dexterity/docs/advanced/references.html, and it doesn't work.
I also tried stepping via
/pdb
, creating anObjPathSourceBinder
by hand:And it returns plenty of items.
Also:
http://stackoverflow.com/questions/24638057/how-to-make-a-dexterity-reference-field
The text was updated successfully, but these errors were encountered: