Viewing 4 reply threads
  • Author
    Posts
    • #3387
      pupppet
      Member

      When I click “Add More” I get a duplicated group that semi randomly populates a few of the fields in the new group with content from the very first group. I’m running 0.9.4.25.

      piklist('field', array(
      	 'type' => 'group'
      	 ,'field' => 'layers'
      	 ,'add_more' => true
      	 ,'label' => 'Layer'
      	 ,'template' => 'field'
      	 ,'columns' => 12
      	 ,'fields' => array(
      	 	 array(
      	 			'type' => 'text'
      	 			,'field' => 'label'
      	 			,'label' => ''
      	 			,'columns' => 12
      	 			,'description' => 'test'
      	 			,'attributes' => array(
      	 				'class' => 'text',
      	 			)
      	 	 ),
      		array(
      			'type' => 'editor'
      			,'field' => 'content'
      			,'label' => ''
      			,'options' => array (
      				'wpautop' => true
      			)
      		),
      		array(
      			 'type' => 'select'
      			 ,'field' => 'align'
      			 ,'label' => 'Alignment'
      			 ,'columns' => 6
      			 ,'choices' => array(
      					'default' => 'Default'
      				 ,'left' => 'Left'
      				 ,'center' => 'Center'
      				 ,'right' => 'Right'
      			 )
      		 ),
      		 array(
      				'type' => 'text'
      				,'field' => 'text_size'
      				,'label' => 'Text Size'
      				,'columns' => 6
      				,'attributes' => array(
      					'class' => 'text'
      				)
      		 ),
      		 array(
      			 'type' => 'colorpicker'
      			 ,'field' => 'text_color'
      			 ,'label' => 'Text Color'
      			 ,'columns' => 6
      			 ,'attributes' => array(
      				 'class' => 'text'
      			 )
      		 ),
      		 array(
      			 'type' => 'colorpicker'
      			 ,'field' => 'background_color'
      			 ,'label' => 'Background Color'
      			 ,'columns' => 6
      			 ,'attributes' => array(
      				 'class' => 'text'
      			 )
      		 ),
      		 array(
      				'type' => 'text'
      				,'field' => 'background_image_url'
      				,'label' => 'Background Image URL'
      				,'columns' => 6
      				,'attributes' => array(
      					'class' => 'text'
      				)
      		 ),
      		 array(
      				'type' => 'select'
      				,'field' => 'background_image_opacity'
      				,'label' => 'Background Image Opacity'
      				,'columns' => 6
      				,'choices' => array(
      					'' => 'Select an opacity »'
      					,'.1' => '10%'
      					,'.2' => '20%'
      					,'.3' => '30%'
      					,'.4' => '40%'
      					,'.5' => '50%'
      					,'.6' => '60%'
      					,'.7' => '70%'
      					,'.8' => '80%'
      					,'.9' => '90%'
      					,'1' => '100%'
      				)
      			),
      			array(
      					'type' => 'file'
      					,'field' => 'background_image'
      					,'label' => 'Background Image'
      					,'columns' => 6
      					,'attributes' => array(
      					 'class' => 'piklist-custom-media-field'
      			 			)
      					,'options' => array(
      					)
      			),
      		 array(
      				'type' => 'text'
      				,'field' => 'custom_css'
      				,'label' => 'Custom CSS'
      				,'columns' => 6
      				,'attributes' => array(
      					'class' => 'text'
      				)
      		 ),
      		  array(
      		 		'type' => 'text'
      		 		,'field' => 'custom_class'
      		 		,'label' => 'Custom Class'
      		 		,'columns' => 6
      		 		,'attributes' => array(
      		 			'class' => 'text'
      		 		)
      		  ),
      	 )
       ));
    • #3391
      Steve
      Keymaster

      @pupppet– I just emailed you the latest beta which fixes advanced group fields like this. Let me know how it works out.

    • #3405
      pupppet
      Member

      Thanks, I gave it a try but I’m still seeing the same column issue-

      Typical field:
      <div data-piklist-field-group="ccf4167" data-piklist-field-columns="6" class="piklist-field-column piklist-field-column-last" style="display: block; float: left; width: 49.25%; margin-right: 0px;">...</div>

      versus a file field:
      <div data-piklist-field-group="ccf4167">...</div>

    • #3413
      Steve
      Keymaster

      @pupppet– The issue you posted was “I get a duplicated group that semi randomly populates a few of the fields in the new group with content from the very first group”.

      Is this fixed with the beta?

    • #3442
      pupppet
      Member

      Sorry, getting my posts mixed up. I thought the fix was also for the issue I reported here: https://piklist.com/support/topic/file-field-issues/.

      But the semi randomly populated content appears to be resolved thanks!

Viewing 4 reply threads
  • The topic ‘Add more issues’ is closed to new replies.