HyperOsmar
Member
Dear Colleagues,
I'm migrating (in testing phase) from Joomla 3.X to 4.X...
In the previous version there was a plugin for validating Special Characters of elements and, which worked perfectly, this plugin is no longer present in the current version.
I'm trying to replace it with the PHP Code plugin, inserting the following rule:
But unfortunately, without success...
Can someone help me???...
I'm migrating (in testing phase) from Joomla 3.X to 4.X...
In the previous version there was a plugin for validating Special Characters of elements and, which worked perfectly, this plugin is no longer present in the current version.
I'm trying to replace it with the PHP Code plugin, inserting the following rule:
$value = "{cad_municipios___observations:value}";
if (strpos($value, ';') !== false) {
$value = str_replace(';', '|', $value);
JFactory::getApplication()->enqueueMessage("The character ';' has been replaced by '|'.", 'warning');
"{cad_municipios___observacoes} = '$value'";
}
if (strpos($value, ';') !== false) {
$value = str_replace(';', '|', $value);
JFactory::getApplication()->enqueueMessage("The character ';' has been replaced by '|'.", 'warning');
"{cad_municipios___observacoes} = '$value'";
}
But unfortunately, without success...
Can someone help me???...