replacing a word BUT with a condition expression

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Michael REMY
Joomla! Intern
Joomla! Intern
Posts: 62
Joined: Thu Feb 25, 2010 9:32 am

replacing a word BUT with a condition expression

Post by Michael REMY » Thu Aug 19, 2021 9:45 am

hi,

My joomla is 3.10, in language EN and FR.
i search a plugin/component/extension to replace a word from an page by another word.
it is not so simple because, i need to perform that with a condition. example :

my condition (3 examples, i need one to fit my need):
example 1 :
if the page is this url, then do the replacement
ifnot, do nothing

I test " ReReplacer " and "Bad Word Filter" but there is no condition option, so the replacement work everywhere in the site which I DON'T want that ! only in a page i decided.


Example2 of other condition which can fit my neeed :

if the HTML code contains the word XXXXX then replace the word YYYYYY by ZZZZ
if the HTML DOES NOT contain the word XXX then do nothing.


Example 3 :

if the page article language is FR (not EN) then activate ReReplacer
if the page article language is EN (not FR) then disable ReReplacer


If such extension does not exist, maybe there is another extension to DISABLE an exention on a unique page.
By example, i wish to disable the extension XXX only in the page/URL i select.

Thank you all for your help, read and advices.

Best regards

User avatar
DV-admin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 165
Joined: Wed Sep 20, 2017 7:24 am
Location: Genova
Contact:

Re: replacing a word BUT with a condition expression

Post by DV-admin » Sun Sep 19, 2021 10:49 am

Hi there,
You can do this with an MySQL query if you have access to the database.
Regards,
Liz

Michael REMY
Joomla! Intern
Joomla! Intern
Posts: 62
Joined: Thu Feb 25, 2010 9:32 am

Re: replacing a word BUT with a condition expression

Post by Michael REMY » Mon Oct 04, 2021 7:17 am

hi,

not possible with sql because the text are dynamic (generated by plugins), not in static text from articles...

Have e good day


Locked

Return to “Extensions for Joomla! 3.x”