I want to duplicate some pages and change a few items - the basic layout is going to identical to an existing page. Is there an easy way to do that? Thanks for your help.
Best approach is to export/import, and while importing go to 'view nodes' and select to keep, duplicate or replace the UI elements. If you duplicate UI elements like pages & groups, you can rename them after the import
Unfortunately, it is really hard to select what to duplicate. The window cannot be resized and the icons/text are grayed out making it even harder to figure out what is what in the “config nodes” section.
Now I have completely messed it up . I thought I’d try making a copy of the flow and then adding a ui-page and changing the links of the groups to that page. Unfortunately it looks like it changes the original group (on the original flow) so now it is a huge mess.
Oh well - that will teach me to try things in incremental steps . Luckily, this instance is a dev instance to I think I can get it straightened out, but it is going to be a pain.
Does anyone have other options for doing this?
UPDATE: I managed to get everything back by deleting the flows and the pages, looking for “unused” group in the config-node panel and deleting those and then re-importing the flow from my “live” version. Phew
When you import tell it to make a copy of everything, then sort it out.
Yeah - I just tried that and here is what I found.
- The duplicate ui-pages, ui-groups and widgets were imported but the duplicate groups were not associated with these pages (they were all associated with the original page) and the widgets had the original group name. So now the original page had duplicates of everything and the new “copied” page was empty.
- The duplicate ui-page had the same url as the original page (not a big deal but something something that NR will complain about when deploying)
Going through and sorting that out is almost not worth it unfortunately.
I wish what would happen is that duplicate config/nodes appended “copy” to the objects that are copied and retain the hierarchy? It would also make it simpler to find and edit the copy
Well - I got it to work. Here are the steps I took.
- Created a new flow and moved the flow tab right next to the one I wanted to duplicate
- Copied the old flow (I did it in sections/groups) to the new flow page. This will duplicate the dashboard widgets on the original ui-page.
- Created a new ui-page (named it similar to the original and moved it right below the original ui-page in the Dashboard 2 panel on the right side of the editor). The configuration of the page (theme, custom CSS, icon etc. where the same as the original, but the “Path'“ was new.
- On the new ui-page, created the first group (named it exactly as the original and made sure the settings were the same)
- Dragged the duplicate widgets from the original ui-page/group to the new ui-page/group making sure that they were in the same order (Note: the copied widgets are sorted in same order as the original - eg. Original order 1→2→3, copied order 2→3→1)
- Repeat for each ui-group on the original ui-page.
My earlier approach of importing the flow (after selecting the option to “copy” duplicates) had a few issues.
- It looks like the ui-groups were not duplicated
- The duplicate ui-page had the same “Path” as the original but had no associated groups.
- All the duplicate widgets were under the original group, so I would have had to steps 4-6 in any case
I have created a “feature request” with some suggestions to improve the process to import flows ( Importing flow duplicates detected - window is not resizable ). Hopefully it will be considered down the line.