- This topic has 1 reply, 2 voices, and was last updated 5 years, 2 months ago by
Steve.
Viewing 1 reply thread
-
AuthorPosts
-
-
December 4, 2016 at 8:45 am #7610
mrioaMemberHello!
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. -
December 9, 2016 at 12:41 am #7630
SteveKeymasterGroups within a group does get tricky.
Can you illustrate what layout you want to accomplish?
-
-
AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.