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.
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.
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.
This would be really useful, hows it going Lucas?
Thanks
Thanks
Hey, have you done anything on this, per chance? This would be an awesome tool, especially for large-scale sites!
I would also be interested in this Addon
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.
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.
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/...