I am working on a site that has quite a bit of data imported by importx.
388 of the resources had commas in the page title, resulting in commas in the alias. After a great deal of editing I have discovered an issue with the commas in the aliases. (using importx for updating) I have since updated the excluded alias characters to include a comma so future resources will not have a comma in the alias.
I can go into each resource delete the alias and resave- that removes the comma. But I am on a time line that makes that unpractical, Is there a way to reset the aliases via a batch operation
The simplest solution is probably an SQL UPDATE statement in PhpMyAdmin that deletes the commas from the columns alias and uri in the database table modx_site_content.
Or maybe you could write a snippet that loops through all the resources and deletes the field alias. And then select Manage → Clear Cache → Refresh URIs in the topmenu to regenerate the uris.
I am glad this site is on MODXCloud. I just took a snapshot and created two new clouds to test out the suggestions. Both Halftrainedharry’s and bobray’s ideas worked perfectly.
To help others I used MyPHPAdmin to run the following two queries to implement halftrainedharrys idea: