CMSB3: Save and Copy plugin

By Toledoh - January 10, 2016

Hey Guys,

I don't think the save and copy plugin is working on CMSB3?  I don't get an button.

Cheers,

Tim (toledoh.com.au)

By ross - January 11, 2016

Hi Tim

The current version of Save&Copy won't work with CMS Builder 3.0.  We are in the process of upgrading all the plugins and will have them ready to download as soon as possible.  

We'll post back here specifically for you when Save&Copy has been finalized.

Let me know any questions in the meantime.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

By Toledoh - January 11, 2016

Thanks Ross

Cheers,

Tim (toledoh.com.au)

By Daryl - January 11, 2016

Hi Tim,

Here's the new version of Save & Copy plugin that works in CMSB 3.0:
http://www.interactivetools.com/add-ons/save-and-copy/

Here's the list of plugins the we've updated so far to be compatible with CMSB 3.0:
http://www.interactivetools.com/forum/forum-posts.php?postNum=2237973

Cheers,

Daryl Maximo
PHP Programmer - interactivetools.com

By Toledoh - January 11, 2016

Thanks Daryl

Cheers,

Tim (toledoh.com.au)

By Toledoh - January 11, 2016

Hi Daryl.

Would it be a simple fix to allow the save & copy function to apply to category records?

Cheers,

Tim (toledoh.com.au)

By Daryl - January 12, 2016

Hi Tim,

Yes, you just need to add the "category" menuType in the if condition on line 23 of /plugings/saveAndCopy/saveAndCopy.php. Ie:

$isMultiRecord_editMenu = isset($GLOBALS['schema']['menuType']) && ($GLOBALS['schema']['menuType'] == 'multi' || $GLOBALS['schema']['menuType'] == 'category') && $action == 'edit';

Cheers,

Daryl Maximo
PHP Programmer - interactivetools.com

By Toledoh - January 12, 2016

Hey Daryl.

I think something isn't quite right with the plugin.

I wasn't getting any "save & copy" button on multi records.  I made the change you've suggested and get it on categories, but still not on multis.

I played with changing && to ||, and this started showing the buttons in multi, but also showing them in the list view rather than just the record.

Cheers,

Tim (toledoh.com.au)

By Daryl - January 12, 2016 - edited: January 12, 2016

Hi Tim,

Save & Copy button only appears when editing an existing record. 

I will check in with Dave if this was the default behavior of the plugin. 

For now, to make the button appear on category and multi-sections when adding or editing a record, replace line 23 with:

$isMultiRecord_editMenu = isset($GLOBALS['schema']['menuType']) && ($GLOBALS['schema']['menuType'] == 'multi' || $GLOBALS['schema']['menuType'] == 'category') && ($action == 'add' || $action == 'edit');

I'll post in this thread again when we've updated the released version.

Thanks,

Daryl Maximo
PHP Programmer - interactivetools.com