The Joomla 4 version of ReReplacer Pro now includes support for the brand new Conditions system that can be shared by multiple ReReplacer items and extensions, the ability to put Rules into Groups, and to combine different Matching Methods.

ReReplacer is a Joomla component that enables you to search and replace anything you want in your website on-the-fly. You can do replace or remove in any piece of HTML. You also have the ability to use the powerful Regular Expressions to search and replace, which opens up endless possibilities.

Today, we're proud to announce the release of the brand new (and long-awaited!) Conditions system, that is included in ReReplacer Pro for Joomla 4 (version 12.2.0).

Conditions System

Combining Condition Rules

ReReplacer for Joomla 4 features a much more flexible Conditions system that you can use to determine if a replacement should be done or not based on specific pages or situations.

This Conditions system replaces the "Assignments" tab that was available in the Joomla 3 version of ReReplacer Pro.

Compared to the Joomla 3 version, where you had to individually select assignments for each ReReplacer item, in Joomla 4 you can now create re-usable Conditions Sets that can be shared by multiple items, and even across different Regular Labs extensions like Advanced Module Manager, Content Templater, and Conditional Content.

When editing a ReReplacer item's Conditions, you can decide to Edit the current Condition Set for the current item or for all items that use the same Condition Set. You can also select another existing Condition Set to connect to the ReReplacer item.

Rules & Groups

The way conditions work for ReReplacer is also a lot more flexible in the Joomla 4 version.

Instead of having to scroll through the page to enable rules, you can now specifically select your desired rules via a dropdown menu, adding more via the + Add Rule button, or removing existing ones via the - button.

This also allows you to re-use the same Rule type more than once, and you have the ability to combine different Matching Methods (AND/OR) by putting rules into Groups.

Condition Summary

When selecting rules in a Condition Set, a nice Summary will be displayed on the right, showing you a recap of where/when the replacement will be executed.

If no Condition Set is selected for an item, or if a Condition Set has no rules, the replacement will be done on all pages of your website. As soon as you set one or more of the rules to Include or Exclude, the replacement will be limited to the pages/situations matching those rules.

Check out in the Documentation all the available rule types for ReReplacer Pro, with the respective settings for each.

Conditions Manager

ReReplacer Pro also installs the Regular Labs - Conditions manager component, which stores all the Conditions you connect to replacements or other Regular Labs extensions.

From the Conditions Managers, you can view at a glance all the items where you use each Condition across the Regular Labs extensions

You can also edit the Conditions from this view, with the ability to add a description to them and group them into categories as well.

Upgrading from Joomla 3 to Joomla 4

Upon installing ReReplacer Pro on a Joomla 4 site, any of the previous assignments from the Joomla 3 version will be automatically converted to the new Conditions system.

So all your replacements should automatically follow the same rules you had in the Joomla 3 version of ReReplacer Pro, without you needing to tweak anything. If any issues arise with the migration, please report them to our Support Forum.

This is the process to upgrade ReReplacer, just like any of the Regular Labs Extensions:

  1. First, make sure that your Joomla 3 site is updated to the latest Joomla 3.10 release
  2. On Joomla 3.10, update ReReplacer to its latest version
  3. Upgrade your Joomla 3.10 site to Joomla 4
  4. Reinstall ReReplacer on Joomla 4. This will upgrade the extensions to its Joomla 4 counterpart.

Other Regular Labs Extensions using Conditions

As mentioned above, the new Conditions system is also shared by other Regular Labs extensions, like Advanced Module Manager, Content Templater, and Conditional Content.

This means you can create a Condition Set for a replacement, and also connect it to a module in Advanced Module Manager - for example.

Check out the Documentation

We hope you enjoy the newest version ReReplacer in its Joomla 4 form!

Check out the full ReReplacer Documentation for Joomla 4 for more details on all these changes and new features.

For any question, or issue you may encounter with the extension, feel free to head to our Support Forum.