Find/Replace

Permalink
Seems like a great (and dangerous) add-on functionality would be a find-replace tool.

It would perform site-wide (or more closely scoped) replacements of text/code. Within the standard content block, and perhaps HTML block as well.

Would personally model it after Dreamweaver's UI options:
- Replace type (text/code, text ignores markup)
- Ignore whitespace (y/n)
- Match case (y/n)
- Replace scope (entire site/path specific/pagetype specific)

Other thoughts:
- Should have a 'step-through' approval of each match/change showing before-after and page info, allowing skip, or perhaps a pre-execute list of matches that opens a preview if requested.
- Should only search latest version and should create a new version when changes are executed.

While I understand some basics for how to do this, I'm not quite capable of building at the moment so I thought I'd share the idea with the community, maybe get feedback or someone interested in building/collaborating.

Saltwater
 
LucasAnderson replied on at Permalink Reply
LucasAnderson
Hmm, not a bad idea. I think I might have something close to this that could be modified to perform this from within the Dashboard, but I do agree this is probably an "Administrator" level feature. I'll add it to my list.
BHWW replied on at Permalink Reply
BHWW
This would be really useful, hows it going Lucas?

Thanks
Stiny replied on at Permalink Reply
Stiny
Hey, have you done anything on this, per chance? This would be an awesome tool, especially for large-scale sites!
matt21 replied on at Permalink Reply
I would also be interested in this Addon
DreamMedia replied on at Permalink Reply
DreamMedia
Have a look at

http://www.concrete5.org/marketplace/addons/text-placeholder-and-re...

It searches through the whole page while skipping the html tags. Your search phrases can be tokenized but you can also choose to not use tokens and just replace text. It also has some level of rights managament.
You can not choose specific pages or versions. The replacement is done on the entire site.
jb1 replied on at Permalink Reply
jb1
I realise this is an old thread, but just in case someone stumbles across it, I have a new add-on that does a great job of finding & replacing content across the entire website - all blocks and all page attributes. Here's a link:https://www.concrete5.org/marketplace/addons/find-and-replace/...