Welcome guest, please Login or Register

EEC.MS - ExpressionEngine add-ons

You are here: HomeForum Home → Others → Sandbox → Thread

   

alpha MX Cloner 1.0.0 for EE2

Avatar
RankRankRankRank

Total Posts: 701

Joined 2010-07-13

PM

It was a little bit tricky to add the ability to clone entries in current EE version. So it’s really needs in deep test.

* Matrix field is not supported ...  but I have a somel solution in post below.

Requirements
EE2 >= Build 20100712

new topic

     

Image Attachments

mx-cloner.png

Click thumbnail to see full-size image

Avatar
RankRankRankRank

Total Posts: 701

Joined 2010-07-13

PM

Matrix support:
ft.matrix.php
add new line 1054:

$clone = ($this->EE->input->get('clone') == 'y');
$count=0

replace line 1058:

$data['row_id_'.$row['row_id']] $row

with

$key $clone 'row_new_'.$count 'row_id_'.$row['row_id'];
     
$data[$key] $row;
     
$count ++; 
     
Rank

Total Posts: 3

Joined 2010-08-02

PM

This might end up being the best thing I’ve seen all day! I haven’t installed it yet, but this [JUST IN TIME] solves a major problem for me. Hopefully, it works as advertised. I am using Matrix fields. They also utilize the Playa add-on, too. I definitely hope it’s the solution I so desperately need.

Thanks, Max!

     
Rank

Total Posts: 3

Joined 2010-08-02

PM

I had a little bit of tweaking to get some reverse_related_entries working right in Playa columns in a Matrix field, but beyond that small detail, this plugin works for me. And we are doing some heavy lifting, duplicating one entry that has 435 Matrix rows. (You can have 3 guesses as to what that field contains.)

     
Rank

Total Posts: 3

Joined 2010-08-02

PM

Okay, after interacting with this a bit, I find the little duplication icon to be a pain. I don’t understand the logic of how to get it to show on an entry. Sometimes it just shows up randomly on an entry in the list. Sometimes not at all. And it generally takes some clicking around to get it to show.

What’s the deal with this?

     
Avatar
RankRankRankRank

Total Posts: 701

Joined 2010-07-13

PM

could you please tell me which browser and EE2 build do you used?

     
Avatar
RankRankRankRank

Total Posts: 701

Joined 2010-07-13

PM

ok. with EEb1-2 MX Cloner works unstable because of old jQuery version.