We have a wiki structure where a smartfolder shows all wiki pages with relations to the projects they are in.
When we use the duplicate option in the sidebar (right mouse click) to duplicate an entitiy (wiki page), then the content in the item is duplicated, but all the relations (parent pages, project) are not copied along.
If I use a duplicate option then I would expect all settings and relations to be copied as well, by not doing this we get issues where content can just disappear.
The Duplicate action should copy the value of a to-one relation field, but not the values of a to-many relation field.
This means that the values for a one-to-many self-relation will not be duplicated
There is definitely something going wrong over there, we have instances where the parent page (one-to-one) is not copied over either.
Is there any way to do copy over one-to-many with the right-click menu? It feels odd that a duplicate does not actually duplicate. And using a separate button defeats the point of the duplicate button on the side-bar.
I added 2 images, this is a smart folder with Projects, and Outputs in the projects, which then have Wiki Pages attached. If I was to duplicate the Game Master page, then neither the Parent Page (to-one) nor the Project/Output (to-many) are copied over.
If you are duplicating a Wiki page, then the links to Outputs will not be duplicated (since this is a to-many relation).
Also, the links due to a self-relation (Wiki page → Wiki pages) will not be duplicated.
Just to clarify, we dont look for a full deep cloning of page + sub-pages, only to maintain relations that have been established in the original entity. The page you shared does provide extra insight that we will take forward with our setup.
It is clear what the current limitations of the duplication function are, and we might look at a custom button for now to facilitate simple duplicating for our space.
Indeed. In most cases, with a limited (and fixed) set of relations, it’s possible to create a set of automations that achieve a well-defined cloning process.
It’s just that each person’s implementation is likely to be slightly different.
Good luck.
In case anyone else runs into the same issue, we solved it now with a simple duplicate button
This implementation allows us to pin a duplicate button to the top of all wiki pages, and adds another Duplicate button on the right-click menu in the side bar (we might rename it to make the difference between the default and our custom duplicate clear).