Page 1 of 1

Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 12:47 pm
by mlsto
Hello

Is there a way to reset the IDs generated for the different layouts and items, I had the use page name to be included but when I clone a page it keeps the IDs of the other page, doesn't include the new page name.

Using a lot of cloned pages so IDs seem all messed up, if I can reset all IDs and then have them generated again that would be great.

Thanks for any help.

Re: Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 1:55 pm
by crispy68
That's what cloning does. It keeps everything the same. If you copy, then it will rename the ID's to something new. I'm not aware of any way of changing a bunch of ID's at once.

My advice is when you create a page, change the ID"s of the objects manually to something that is descriptive rather than relying on page names. I find that it is much easier to find what you are looking for this way. For example, if I have a layout grid with a contact form in it, I might change the grid name to 'contactGrid' or 'contactForm'. This way it is easy to locate on the left among the other objects and is descriptive.

Re: Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 1:59 pm
by Pablo
You can use 'Global Replace' to replace the ID's.

Re: Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 2:07 pm
by mlsto
Thank you, perfect

Re: Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 2:27 pm
by mlsto
Is it possible to regenerate them again after removing so they use the correct page names.

Added the settings again but nothing changes when saving.

Thanks for any advice on this.

Re: Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 4:33 pm
by Pablo
Sorry, this is not possible for existing items.

Re: Resetting Automatically Generated IDs

Posted: Tue Nov 05, 2024 5:37 pm
by mlsto
crispy68 wrote: Tue Nov 05, 2024 1:55 pm That's what cloning does. It keeps everything the same. If you copy, then it will rename the ID's to something new. I'm not aware of any way of changing a bunch of ID's at once.

My advice is when you create a page, change the ID"s of the objects manually to something that is descriptive rather than relying on page names. I find that it is much easier to find what you are looking for this way. For example, if I have a layout grid with a contact form in it, I might change the grid name to 'contactGrid' or 'contactForm'. This way it is easy to locate on the left among the other objects and is descriptive.
Nice advice, thanks