Table block
-
Hi,
I’m trying to add a custom Table block (columns, rows…). The defaults structure should be something like this:
$defaults = array( 'title' => '', 'columns' => array( 1 => array( 'title' => 'Column 1 heading', 'rows' => array( 1 => array( 'content' => 'Row 1 content'), 2 => array( 'content' => 'Row 2 content'), 3 => array( 'content' => 'Row 3 content') ) ), 2 => array( 'title' => 'Column 2 heading', 'rows' => array( 1 => array( 'content' => 'Row 1 content'), 2 => array( 'content' => 'Row 2 content'), 3 => array( 'content' => 'Row 3 content') ) ) ) );
When I add the block into the builder, the default data are filled just fine. However, when I save the template, it seems like the rows data are not retained (the column title is there – working). I have text inputs for the rows and their id’s are this:
<?php echo $this->get_field_id('columns') ?>-<?php echo $column_count ?>-rows-<?php echo $row_count ?>-content
Is it possible to have this structure at all?
Thanks!
https://www.ads-software.com/extend/plugins/aqua-page-builder/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Table block’ is closed to new replies.