Support Forum » User Profile

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Migrating data to a group, formatting breaking #543
    riseoflex88riseoflex88
    Participant

    Ok, i think I've found the issue. It wasn't the data migration that was the problem. That just made me notice it.

    It was the Columns inside the fields. I'd perhaps tried too much at once.
    When I commented out the 'columns' key for each field it worked as expected.

    $meta_boxes[] = array(
    		'title' => 'Pedigree',
    		'pages' => array( 'drivers' ),
    		'context' => 'normal',
    		'priority' => 'low',
    		'fields' => array(
    			array(
    		    	'id' => 'pedigree_group',
    		    	'type' => 'group',
    		        'name' => 'Group',
    		        'clone' => true,
    		        'fields' => array(
    		        	array(
    		                'name' => 'Year',
    		                'id' => 'year',
    		                'type' => 'text',
    		                'columns' => 2,
    		            ),
    		            array(
    		                'name' => 'Title',
    		                'id' => 'title',
    		                'type' => 'text',
    		                'columns' => 10,
    		            ),
    		            array(
    		                'name' => 'Wins',
    		                'id' => 'wins',
    		                'type' => 'text',
    		                'columns' => 4,
    		            ),
    		            array(
    		                'name' => 'Podiums',
    		                'id' => 'podiums',
    		                'type' => 'text',
    		                'columns' => 4,
    		            ),
    		            array(
    		                'name' => 'Poles',
    		                'id' => 'poles',
    		                'type' => 'text',
    		                'columns' => 4,
    		            ),
    		            array(
    		                'name' => 'Description',
    		                'id' => 'description',
    		                'type' => 'textarea',
    		                'columns' => 8,
    		            ),
    		        ),
    		    ),
    		)
    	);

    So sorted for now but columns inside a group would be really useful for making this really slick.

    Great job either way though!

    Thanks

    in reply to: Migrating data to a group, formatting breaking #532
    riseoflex88riseoflex88
    Participant

    Sorry, no, it's not solved yet. You asked how I converted existing data to the new group of fields.

    Between this and my initial post I've explained how I've done this however it doesn't work as it ends up nesting the data inside itself as explained above.

    in reply to: Migrating data to a group, formatting breaking #529
    riseoflex88riseoflex88
    Participant

    I essentially wrote it out again from scratch.

    Plucked out the data I wanted from the previous fields. Remapped it onto a new array and saved that with the same key.

    As far as I can tell everything was in the right format.

    in reply to: Image Advanced array with the group array? #462
    riseoflex88riseoflex88
    Participant

    It's not possible, it's mentioned in the docs.

    However, I'd really, really love it if this could be added! Or at least just a single image within the group

Viewing 4 posts - 1 through 4 (of 4 total)