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

List items collapsable #55

Closed rocchidavide closed 9 years ago

rocchidavide commented 9 years ago

How about make list items collapsable? When I have many of those each of which has many fields, it's difficult to scroll and read them.

Thank you!

ausi commented 9 years ago

You can already do that by adding a group field as the first field in a list. E.g.:

'my_group' => array(
    'inputType' => 'group',
    'label' => array('My Group', ''),
),
rocchidavide commented 9 years ago

What I mean is that:

'members' => array(
    'label' => array('Feature boxes', ''),
    'inputType' => 'list',
    'elementLabel' => 'Feature box %s',
    'fields' => array(...)
ausi commented 9 years ago

I mean:

'members' => array(
    'label' => array('Feature boxes', ''),
    'inputType' => 'list',
    'elementLabel' => 'Feature box %s',
    'fields' => array(
        'my_group' => array(
            'inputType' => 'group',
            'label' => array('My Group', ''),
        ),
        ...
    ),
),
rocchidavide commented 9 years ago

Sorry ausi, I'm also using group inside my member field. What i suggest is something like that:

schermata 2015-08-11 alle 14 26 52

ausi commented 9 years ago

With groups it would look like this:

groups-collapsed

rocchidavide commented 9 years ago

I have more than one group inside my member field, but they are all uncollapsed

ausi commented 9 years ago

But you can collapse them by clicking on the group label. Adding another level that is collapsible seems too much to me.

rocchidavide commented 9 years ago

Ok :) Thank you!

zonky2 commented 9 years ago

similar question at forum http://help.rocksolidthemes.com/discussions/contao/12021-verbesserungsvorschlag-fr-inputtype-list-icon-zum-zuklappen-der-items-im-be