Tagged: , ,

Viewing 1 reply thread
  • Author
    Posts
    • #7610
      mrioa
      Member

      Hello!

      I can’t seem to get my group fields using columns, e.g. to display two groups in a row using 6 colums each.
      Docs say colums are great to use within groups, but nothing specific about using colums for themselves. Though it’s also mentioned to use the “Piklist field parameters” to customize the field type “group”, so columns should work?

      Here’s my simplified code (irl there are more fields withing the groups, so groups are neccessary):

      piklist('field', array(
      	'type' => 'group'
      	, 'field' => 'map_details_section'
      	, 'label' => __('Map Details')
      	, 'add_more' => true
      	, 'fields' => array(
      		array(
      			'type' => 'text'
      			, 'field' => 'map_name'
      			, 'label' => __('Map name')
      			, 'columns' => 3
      		)
      		, array(
      			'type' => 'group'
      			, 'field' => 'map_regular_1st'
      			, 'label' => 'Regular 1st half'
      			, 'columns' => 6
      			, 'fields' => array(
      				array(
      					'type' => 'radio'
      					, 'field' => 'map_half_side1'
      					, 'label' => __('Team1 side')
      					, 'columns' => 2
      					, 'choices' => array(
      						'ct' => 'CT'
      						, 't' => 'T'
      					)
      				)
      			)
      		)
      		, array(
      			'type' => 'group'
      			, 'field' => 'map_regular_2nd'
      			, 'label' => 'Regular 2nd half'
      			, 'columns' => 6
      			, 'fields' => array(
      				array(
      					'type' => 'radio'
      					, 'field' => 'map_half_side1'
      					, 'label' => __('Team1 side')
      					, 'columns' => 2
      					, 'choices' => array(
      						'ct' => 'CT'
      						, 't' => 'T'
      					)
      				)
      			)
      		)
      	)
      ));
      Attachments:
      You must be logged in to view attached files.
    • #7630
      Steve
      Keymaster

      Groups within a group does get tricky.

      Can you illustrate what layout you want to accomplish?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.