• Resolved PaulH

    (@paulhuckstepp)


    I’m having an issue, that was OK before, with an editor field in a group. When it’s displayed on the page metabox the editor field is shown outside of the grouping, and if you add an additional box via the + button the editor is missing.

    piklist('field', array(
        'type' => 'group',
        'field' => 'coloured-boxes',
        'label' => 'Coloured Boxes (not for home page use)',
        'columns' => 12,
        'add_more' => true,
        'fields' => array(
    		 array(
    			'field'			=>	'heading',
    			'label'			=>	'Heading',
    			'add_more'		=>	false,
    			'type'			=>	'text',
    			'value'			=>	'',
        		'columns' => 12,
    			'attributes'	=>	array('maxlength'=>'30')
    		),
    		array(
    			'field'			=>	'image',
    			'label'			=>	'Image',
    			'add_more'		=>	false,
    			'type'			=>	'file',
        		'columns' => 12,
    			'options'		=> array('min'=>1,'max'=>1)
    		),
    		array(
    			'field'			=>	'colour',
    			'label'			=>	'Colour',
    			'description'	=>	'',
    			'add_more'		=>	false,
    			'type'			=>	'select',
        		'columns' => 12,
    			'choices' 		=> array( 'lightgreen' => 'Green', 'orange' => 'Orange', 'blue' => 'Blue', 'red' => 'Red' ),
    		),
    		array(
    			'field'			=>	'content',
    			'label'			=>	'Content',
    			'add_more'		=>	false,
    			'type'			=>	'editor',
        		'columns' => 12,
        		'options' => array('media_buttons' => false, 'textarea_rows' => 10, 'teeny' => true),
    		),
    
    	)
    ));

    https://www.ads-software.com/plugins/piklist/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editor field not showing inside group’ is closed to new replies.