Batch Updates

User 2843302 Photo


Registered User
8 posts

Does anyone know how to perform a Find & Replace, then when the files that were affected are listed, perform a batch update to a website directly from that list? Or, is there a better way to do this task?

I have a nav bar for the entire site, but using code to make this universal is really difficult and buggy, so I live with Find & Replace, then batch updating. I could do this in Expression Web, but it seems as though CC is making me do this one page at a time.

Also, I've been getting mixed results even with Find & Replace. I ran it once, expecting my usual 30+ pages to update, but only a dozen did. Then I ran it again with the same strings and it found another seven pages. Any help I can get from the wizards in this forum as to how to perform batch updates on a website with CC would be greatly appreciated.

Thanks.
User 122279 Photo


Senior Advisor
14,447 posts

I've always found that doing a search and replace in open files works better than doing it for all files in a directory.

As to finding all instances of something, it comes down to what string you are searching. If it is some text, remember that sometimes a word might get split over two lines with a '-' between. Then it will not exactly match the string.

For things like a menu, or other elements that appear on every page, I would use a library item. Then it can be updated in one place, and the changes will take place globally.

Of course, if you are into php includes (or other kinds of includes), they can also be used to change something in one place and having the effect of it appear on all the pages.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2843302 Photo


Registered User
8 posts

"Library Item" - not familiar with this. I'll look into it, tho. Thanks!
User 122279 Photo


Senior Advisor
14,447 posts

https://www.coffeecup.com/help/articles … ary-items/
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.