• Resolved project13x

    (@project13x)


    Hi, I use this plugin and it works great!

    But I notice when trying to copy a filled in repeater block to paste it in another page the values are gone. and I have to fill it in again.

    Other created blocks don’t seem to have this problem. When copy and paste this to other pages, the filled in values are also copied as well.

    Is this a known issue?

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nK

    (@nko)

    Hey.

    Can you provide more info about your block? Which controls used inside the repeater? How it is filled. I need this info to reproduce issue locally.

    Regards, nK.

    Thread Starter project13x

    (@project13x)

    Hi, thanks for the feedback.

    This problems happens when saving it as meta.
    and using the meta output.

    <?php
    $repeater = get_lzb_meta( ‘control_meta_name’ );
    foreach ( $repeater as $inner_control ) {
    ?>
    <p><?php echo $inner_control; ?></p>
    <?php
    }

    I left the Single output code for Frontend and Editor unchecked.
    and Show block preview in editor is set as never.
    When copy past it to another page the rows are empty again.

    I just made it without meta also and then I don’t have this problem.
    It will copy past to other pages as well. So in that sense the problem is solved.
    But maybe it should work for meta as well?

    Plugin Author nK

    (@nko)

    Hey.

    Meta is saved to the post data. And when you copy the block, data remains in the post meta. When you insert this block in another post, block will look at the post meta data, in which you inserting it.

    Regards, nK.

    Thread Starter project13x

    (@project13x)

    Hi thanks for the feedback!

    I understand now. Better to not use the meta when also wanting the copy the blocks with content.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Repeater field – copy and paste issue’ is closed to new replies.