# Copy/paste of fields with content inside and between resorces

**URL:** <https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041>\
**Category:** ContentBlocks\
**Created:** [March 19, 2020, 1:48pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041 "2020-03-19T13:48:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrabovec](https://forum.modmore.com/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@hrabovec](https://forum.modmore.com/u/hrabovec)\
**Post date:** [March 19, 2020, 1:48pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/1 "2020-03-19T13:48:33Z")

</div>

Is there a way for editor to copy/paste single fields or entire layouts inside resource or between resources? When maintaining large sites, with lots of similar structured pages full of complex fields, this is a must-have.  
Didn’t found a way to do it. Considering CB for large company implementation, without copy/pase it is no-go.

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [March 19, 2020, 1:57pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/2 "2020-03-19T13:57:42Z")

</div>

Not at the moment.

There are [templates](https://docs.modmore.com/en/ContentBlocks/v1.x/Templates.html) which you can use as some sort of blueprint, and you can build [custom structures for complex fields with repeaters](https://docs.modmore.com/en/ContentBlocks/v1.x/Input_Types/Repeater.html), though.

---

<div class="post-metadata">

**Author:** ![hrabovec](https://forum.modmore.com/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@hrabovec](https://forum.modmore.com/u/hrabovec)\
**Post date:** [March 19, 2020, 2:10pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/3 "2020-03-19T14:10:31Z")

</div>

Thanks Mark, I know that, I am wokring for several years with CB. But we definitely need someting simple to use for content created freely by editors.

---

<div class="post-metadata">

**Author:** ![Jasonens](https://forum.modmore.com/letter_avatar_proxy/v4/letter/j/ac8455/32.png) [@Jasonens](https://forum.modmore.com/u/Jasonens)\
**Post date:** [March 22, 2020, 10:52pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/4 "2020-03-22T22:52:43Z")

</div>

Hello @hrabovec,  
maybe this would help for the moment?  
[https://github.com/SEDAdigital/CopyContent](https://github.com/SEDAdigital/CopyContent)

---

<div class="post-metadata">

**Author:** ![hrabovec](https://forum.modmore.com/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@hrabovec](https://forum.modmore.com/u/hrabovec)\
**Post date:** [March 23, 2020, 9:22am UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/5 "2020-03-23T09:22:09Z")

</div>

Thanks Jens, will have a look at this. While CB is based on JSON in resource properties, I guess it should be quite easy to somehow copy part of this JSON representing layout or field (to clipboard or session cookie), then paste this into target resource JSON to a selected place and refresh visual representation on back-end editor.

---

<div class="post-metadata">

**Author:** ![hrabovec](https://forum.modmore.com/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@hrabovec](https://forum.modmore.com/u/hrabovec)\
**Post date:** [March 24, 2020, 2:09pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/6 "2020-03-24T14:09:45Z")

</div>

Hello Mark, I have just realised that maybe only thing needed here is to add button “Create template from layout” inside layout context menu (alongside Switch layout, Repeat layout) inside resource editor. Then Templates would be excellent solution even for ordinary users. Maybe there should be some category to store these user templates, with ability for user to delete his/hers own templates.

---

<div class="post-metadata">

**Author:** ![sebastian-marinescu](https://forum.modmore.com/user_avatar/forum.modmore.com/sebastian-marinescu/32/252_2.png) [@sebastian-marinescu](https://forum.modmore.com/u/sebastian-marinescu)\
**Post date:** [December 1, 2021, 5:33pm UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/7 "2021-12-01T17:33:44Z")

</div>

@hrabovec I think this is your best work-around right now:

> **[MODX Content Blocks: turn a layout on a resource in to a template.](https://www.gelstudios.co.uk/blog/create-a-content-blocks-template-from-a-single-layout/)**
>
> Here's a handy bit of code that should help you out if you want to quickly and easily create a MODX Content Blocks template from a specific layout inside of an already created resource.

---

<div class="post-metadata">

**Author:** ![hrabovec](https://forum.modmore.com/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@hrabovec](https://forum.modmore.com/u/hrabovec)\
**Post date:** [September 23, 2026, 8:23am UTC](https://forum.modmore.com/t/copy-paste-of-fields-with-content-inside-and-between-resorces/2041/8 "2026-09-23T08:23:00Z")

</div>

If anybody still searching for a solution, here is a handy dashboard widget for copying entire layouts between resources, cloning, rearranging and deleting layout inside resource: [Copy content to other page](https://forum.modmore.com/t/copy-content-to-other-page/2609)
