burghard
Member
To let fabrik guess an url from a phone number, insert
if (preg_match ("/^\+[0-9][0-9\-\s]+/", $value) == 1)
{
$value = 'tel:' . $value;
}
into line 250 plugins/fabrik_element/field/field.php. This works if the element is a field AND "guess link" is set to yes. I would propose to insert this code snipped into the master branch. Should I provide a patch?
if (preg_match ("/^\+[0-9][0-9\-\s]+/", $value) == 1)
{
$value = 'tel:' . $value;
}
into line 250 plugins/fabrik_element/field/field.php. This works if the element is a field AND "guess link" is set to yes. I would propose to insert this code snipped into the master branch. Should I provide a patch?