Search and Replace
Caution
If you don't know what you are doing this module can be very dangerous. You have the ability to effectively change all the content in one fell swoop. If you do, that shouldn't be such a big problem, more an inconvenience, as you will have a backup (remember - backups). This aspect of the utility is intended for post import procedures though it could also be used without having imported anything.
Connection
In order to access this window a connection must first be established. Clicking the 'Search and Replace' button from the main opening window will activate this window. If a connection hasn't been established the Connection window will first appear. Upon successful connection (only to the Drupal database) the user is progressed to the Search and Replace window.

Criteria
It should be fairly self-explanatory what happens here. Enter text to be replaced in the 'Find What...' text box. Enter text that is to replace the searched text in the 'Replace with' text box.
Find (Preview First)
Click the 'Find (Preview First)' button and the first matching record will be displayed in both the bottom panels. The left panel will display the original post and the right panel will indicate the result of the replace operation. At this point no changes have occurred, it's merely a preview. Also note, it only shows the first matching record. There could be 100's of matching records which you are advised by a message box.
At this point you have the ability to change the criteria, click the 'Find...' button again and peruse the results.
Replace (satisfied - commit)
If, and only if, you are satisfied with the replace operation, click the 'Replace (satisfied - commit)' button. This will make the necessary replacements throughout the entire Drupal database (teasers and full entries).
Possible Use
You may have transferred all your images from an old server to a new server in the whole process of updating to Drupal. All your Wordpress entries regarding links to your images will still be intact. Such images maybe linked like so
<a href="http://yoursite.com/wordpress/wp-content/image-001.jpg"...</a>
If your images have been transferred to 'drupal/files/images/' then the correct link should be
<a href="http://yoursite.com/drupal/files/images/image-001.jpg"...</a>
To make this change simply enter
href="http://yoursite.com/wordpress/wp-content/"
in the 'Find' text box, and
href="http://yoursite.com/drupal/files/images/"
in the 'Replace' text box.
All posts will be replaced with the new link information.
- Printer-friendly version
- Login or register to post comments
- 439 reads


Recent comments
2 hours 29 min ago
1 day 2 hours ago
1 day 8 hours ago
1 day 18 hours ago
1 day 18 hours ago
3 weeks 6 days ago
3 weeks 6 days ago
4 weeks 3 hours ago
10 weeks 1 day ago
11 weeks 4 days ago