Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
334.09 KB
MD5: 64a556382f38f1aed33fe25e44681f9a
SHA-1: 9c3f40379e5eb5a0aaa5b701d8a348dedeb8b88c
SHA-256: 2163f4e90677e84054531fd30e6d7dfa5263b17f12abf9e71eb70d629b3f2fc2
Download zip
463.02 KB
MD5: 65ca085a6a299219579ac0eba19d31a7
SHA-1: 7fa679bc5cc541cc7a9e30effa5aceb4b3138bca
SHA-256: 31e848566cf2e2cb93c7205335fd4a34bc26ac4fe7940e4ad3fc0119c8d718a9
Release notes
First alpha release of Content Replace: site-wide find, and find and replace, for editors and administrators. Matches are listed for review before anything changes, and every replacement can be undone.
This is an alpha. Try it on a copy of your site first and back up the database before applying replacements on real content. Config, storage and plugin APIs may still change before beta, and no upgrade path between alpha releases is promised.
Requirements
- Drupal 11.3 or later, or Drupal 12.
- The Views and User modules of Drupal core.
- Drush 13 or later, for the Drush commands only.
What is in this release
- Stored searches: each search is kept with its matches and where the work on them stands.
- Review before replacing: matches are shown in context, as the text is and as it would become, and single matches can be excluded. Matches can be exported as CSV.
- Markup is left alone: tags, attributes, comments, scripts, and the URLs, e-mail addresses and file names inside text.
- Content, content blocks and media are searched, along with paragraphs nested in them at any depth (when Paragraphs is installed).
- Plain text, formatted text, link, image and file fields are supported, and other modules can add field types through a plugin.
- Revisions, translations and content moderation are followed: the latest revision is what is scanned and replaced.
- Access is respected: a scan looks only in what the owner of the search may view, and applying also needs edit access to each item and field.
- Scanning and applying run in steps that can be stopped and resumed from the page, from Drush or on cron.
- An apply queue lets several searches be applied together.
- Undo: every replacement is recorded and can be reverted.
Getting started
- Grant the permissions at Administration > People > Permissions. "Search content site-wide" cannot change content; "Replace content site-wide" is restricted.
- Choose what may be searched at Administration > Configuration > Content authoring > Find and replace.
- Search at Administration > Content > Find and replace.
Known limits are listed in the guide (docs/guide.md). Please report bugs and suggestions in the issue queue.