Welcome to the all-volunteer Plone public chat room. Please use this room for quick questions or to say hi, and post technical or complex questions to https://community.plone.org where you will get more views and answers. Plone conference videos and slides https://ploneconf.org • How to contribute https://plone.org/get-started • Latest releases: https://plone.org/download • Intro to Plone: https://plone.com • Plone news and events: https://plone.org
example.conference.AddSession
but where does that permission come from and how do I define it?
@lyralemos yes, I use it heavily w/o any issues.
from z3c.relationfield.schema import RelationChoice
from plone.app.z3cform.widget import RelatedItemsFieldWidget
... in behavior schema class:
myfield = RelationChoice(
title=u"myfield",
vocabulary="plone.app.vocabularies.Catalog",
required=False,
)
widget("myfield", RelatedItemsFieldWidget)
form.widget(
'myfield',
RelatedItemsFieldWidget,
pattern_options={'selectableTypes': ['NewsItem']},
)
collective.beaker
, but the last code change was 2011, so I don't think it will be compatible with Plone 5.2 and Python 3.6.