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

related tables #69

Closed rocchidavide closed 7 years ago

rocchidavide commented 8 years ago

Is it possible to set a field to select a content of type 'alias' ? I would like to select a content element in my rsce custom element

ausi commented 8 years ago

You can use almost all features of Contao DCAs inside the custom elements config. Selecting a Content-Element could look like this:

'elementId' => array(
    'label' => array('Content Element', ''),
    'inputType' => 'select',
    'options_callback' => array('tl_content', 'getAlias'),
    'eval' => array('chosen' => true),
),