madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

'inputType' => 'picker' not working? #159

Closed 463 closed 1 year ago

463 commented 1 year ago

I tested the use of a picker. The configuration follows to [https://docs.contao.org/dev/reference/widgets/picker/]().

grafik

The backend throws an exception:

grafik

Do I make a failure or pickers are actually not supported?

ausi commented 1 year ago

Please post a screenshot that shows the whole stacktrace.

463 commented 1 year ago

grafik

ausi commented 1 year ago

You need to set eval.context because the relations are stored statically for each DCA and can therefore not be retrieved for “dynamic” fields: 'eval' => ['context' => 'dc.tl_news']

Related ticket: #129

463 commented 1 year ago

Perfect. It is working. Would be fine to add this as an example in [https://rocksolidthemes.com/de/contao/plugins/custom-content-elements/dokumentation]()

Thank you