contao-community-alliance / meta-palettes

Dynamic configured palettes for contao.
6 stars 8 forks source link

[conceptional discussion] Object Oriented Interface #10

Closed tristanlins closed 11 years ago

tristanlins commented 11 years ago

Brainstorming example:

array(
  'fieldsets' => array(
    'collection_with_some_fields' => 
  ),
  'palettes' => array(
    'default' => PalettesBuilder::buildPalette(array(
      'legends' => PalettesBuilder::buildLegendSet(array(
        '' => 'field1', 'field4'
      )),
      'bindings' => array(
        'field1' => array(
          false => PalettesBuilder::buildFieldSet(array('field3')),
          false => PalettesBuilder::buildFieldSet(array('field2')),
        ),
        'field4' => array(
          'value1' => ...,
          'value2' => ...,
          'value3' => ...,
        )
      )
    )),
  ),

  'fields' => array(
    'field1' => array(...),
    'field2' => array(...),
    'field3' => array(...),
    'field4' => array(...),
    'field5' => array(...),
  )
)
tristanlins commented 11 years ago

This feature will be directly build into the DC General.