# Translate all documenttypes as an editor

**URL:** <https://community.bloomreach.com/t/translate-all-documenttypes-as-an-editor/415>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [September 17, 2018, 9:59am UTC](https://community.bloomreach.com/t/translate-all-documenttypes-as-an-editor/415 "2018-09-17T09:59:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Viegen](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/yves_viegen/32/66_2.png) [@Yves\_Viegen](https://community.bloomreach.com/u/Yves_Viegen)\
**Post date:** [September 17, 2018, 9:59am UTC](https://community.bloomreach.com/t/translate-all-documenttypes-as-an-editor/415/1 "2018-09-17T09:59:54Z")

</div>

After using the example script[1] to create new domains for authors and editors my editors where able to create new folders and doctypes (also the custom folders/doctypes) within the cms.

But when I want an editor to translate a document from another folder (to which he has author rights) to translate in to their country domain I get the following error:

> [TranslationWorkflowPlugin$TranslationAction.saveFolder:595] Workflow prevented storing translation for a0b2d6b5-e9e4-47d7-9ec4-bdafa8c05814 due to No document or folder was added: the query at /hippo:configuration/hippo:queries/hippo:templates/my-hippo-folder did not return a matching prototype for ‘myhippo:document’  
> [INFO] [talledLocalContainer] 14.09.2018 14:39:32 WARN http-nio-8080-exec-3 [AbstractWorkflowDialog.onOk:64] Could not execute workflow: could-not-create-folders

I was able to work around this by adding all custom folders to the script in the **createAuthorDomains** function:

`createNodeRule(baseDomain, "hippo:configuration/hippo:queries/hippo:templates/new-custom-folder/hippostd:templates/hippostd:folder");`

This works but I assume (and hope) a more durable solution must be possible. So I don’t have to edit the domain after each new doctype/folder. Any suggestions?

Thank you.

[1] [Groovy Updater Script Examples - Bloomreach Experience Manager (PaaS/Self-Hosted) - The Fast and Flexible Headless CMS](https://www.onehippo.org/library/concepts/update/groovy-update-script-examples.html)

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [September 19, 2018, 1:05pm UTC](https://community.bloomreach.com/t/translate-all-documenttypes-as-an-editor/415/2 "2018-09-19T13:05:07Z")

</div>

I wouldn’t expect this to be necessary, but authorization can be tricky. Theoretically I would expect the rule at"/hippo:configuration/hippo:domains/defaultread/hippostd-templates/type-hippostd-templates" to give access to the templates. I guess they don’t have access to the node or some parent node. Not really sure and unfortunately I don’t have the time to explore it.

---

<div class="post-metadata">

**Author:** ![Yves\_Viegen](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/yves_viegen/32/66_2.png) [@Yves\_Viegen](https://community.bloomreach.com/u/Yves_Viegen)\
**Post date:** [September 24, 2018, 11:09am UTC](https://community.bloomreach.com/t/translate-all-documenttypes-as-an-editor/415/3 "2018-09-24T11:09:31Z")

</div>

Thank you. After adding this and several other rights from the read/write domain I’m getting a new error message. So some succes is achieved.

`cannot copy document which is not contained in a folder`
