Make Sitewide Replacements With ReReplacer |
| June 17, 2011 |
It can be a tedious job, especially in large sites, and you always seem to miss some places when you need to do it manually. ReReplacer is a plugin that lets you make global replacements throughout the site, Including meta tags. Automating the task makes it fast, accurate and complete. With ReReplacer, you have the ability to use powerful regular expressions to search and replace. This opens up endless possibilities. With this much power, you need to be extremely careful. Be sure you have backups, and work offline or on a development site before you try going live with your changes. The changes are made using regular expressions (regex or regexp). You don't need to know anything about them to make most changes, but if you are an expert you will have total control. If you want to learn about regex visit this website http://www.regular-expressions.info. Step 1: Download and Install
![]() You can find complete directions on installing modules and plugins by clicking here - or try clicking on the context sensitive help icon and the extension manager page. If all goes well you will get a "Success" message, and a notice to clear your browsers cache (here's a link with some cache clearing instructions if you need them). Clearing the cache will allow the changes made by the plugin to be viewed immediately. Step 2 - Check Configuration Options![]() Click the Paramaters Button. To find the options you need to deal with first, ![]() You will see the Global Configuration dialogue box pop up. The defaults are will work fine, UNLESS you are using a third party solution to manage your user id's in data base tables. In which case you will definitely need to change the Contact Database Table name.
When you're satisfied with these settings, you're ready to start using ReReplacer. Step 3 - Create a ReReplacer Item![]()
Click the "New" Button (it's orange,not the normal green that you find everywhere else in J15)
At the top of the page you will see that you can select the view. If you left the default selected when you checked the parameters, the Normal view will be highlighted. You can change views just by clicking on the tab.
![]() Review Options: Next you need to check the search options. On the right side of the screen you will see the search option box. There are two sections. Clicking the green triangle will open and close the sections to expose the appropriate choices. ![]() Set the Search Options and Areas: These filters will allow you to refine the search so you get exactly what you want. Not as detailed as the control of theadvanced view, but perfect most of the time. ![]() Select the Search Areas: You don't always want to include every section of the entire site. Global search and replace is very powerful, and can have unexpected results
Enter the details: The name and description only show up on the item list. Nothing you put here will show up anywere in the site. Choose to Publish - or not: If you choose publish, the changes will be made immediately. If you choose "No" the task will be saved and you will be able to see it in the item list. Then the changes will be made when you publish the item. ![]() Fill in text boxes to Create the Search and Replace. Put the word or expression you want to replace in the top window, and what you want to replace it with in the bottom window. Below we are going to replace the word Joomla! (with the !) with the words "The Content Management System". ![]() Go back up to the icon bar and choose a save option. As soon as you click save it will make the replacements, unless you made the right decision in the details box, so be sure this is what you want to do. ![]() Caution: If you chose "Everywhere" in the search areas the word will be replaced in text, modules, headings, meta tags, in the administration section - everywhere. Before you do any replacements it would be wise to get very familiar with the Search Options and Areas. Manage Replacement ItemsIf you chose to publish you will see the green check in the "Published" column, otherwise you'll see the red x, which means the change wasn't made. Clicking on the name of the item will reopen it for editing and publishing.. Enableing it will start the replacement process. ![]() |
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright © 2012 Open Source Training, LLC. All rights reserved.
Comments
This keywords appears inside a border, named as "TAGS", combining articles, prepositions, words, and more. Does your plugin may change or erase it? Thanks in advance.
Which key words? How are those keywords generated? Why not figure out the source of the keywords and change things there? Can we get a link to the site take a quick look?
Kind regards,
Nick
Sorry for the inconvenience, if you're a student at OSTraining, could you copy and paste this into the support forum so one of our support techs can look into it for you? All you have to do is log in at www.ostraining.com and click on Support Forum in the main menu.
Please see the support FAQ for more information:
www.ostraining.com/.../
Kind regards,
Nick
It depends on where you're originally trying to replace, however what you can try to do is go the "Search area" options in the re-replacer item and change the "Enable in area" to content (not in modules) or something other than body or everywhere.
Hope this helps!
Kind regards,
Nick
For instance I want to replace
"Your coupon is" with "Your voucher is" but I do not want to replace all instances of "coupon" with "voucher" just that expression as it is. It does not seem to recognize spaces.
Any ideas?
Check to see if there is some HTML code within what you're trying to replace, which you'll have to account for if you want to replace it.
Kind regards,
Nick
RSS feed for comments to this post