ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker, matrix and duplicating entries

April 18, 2012 5:11pm

Subscribe [3]
  • #1 / Apr 18, 2012 5:11pm

    optima

    121 posts

    Using the method outlined in the link below to duplicate entries when using safecracker works great except for data in an FF Matrix field which is not duplicated into the matrix data table. Anyone got any ideas how to ensure matrix data is duped with new entry id in entry_id col?

    https://gist.github.com/1364133

  • #2 / Apr 19, 2012 1:54pm

    damienmajer

    8 posts

    To solve this simply place the following code right before your {field:matrix_field} tag with PHP enabled on input on your template:

    <?php $_GET['clone'] = 'y' ?>

    Thanks to the great guys at Pixel and Tonic for the solution.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases