Hello Jerome, thanks for your help,
I have attempted to add the script you suggested.
I dont believe i have added to the correct class
$fieldtype->load($field->field_table);
if(!empty($fieldtype->externalOptions) && isset($fieldtype->allValues[$field->field_type])) {
$linkedOptions = $fieldtype->allValues[$field->field_type]['options'];
foreach($fieldtype->externalOptions as $key => $extraOption) {
if(in_array($key, $linkedOptions)) {
$o = is_array($extraOption) ? $extraOption['obj'] : $extraOption->obj;
if(is_string($o))
$o = new $o();
if(method_exists($o, 'save'))
$o->save($fieldOptions);
//wrina add //
$link = $value;
$text = $value;
if(preg_match('#"([^"]+)":(.*)#iU', $value, $m)) {
$link = $m[2];
$text = $m[1];
}
return '<a'.$target.' href="'.$this->trans($link).'">'.$this->trans($text).'</a>';
//end add//
}
}
}
Q. Where should the statement be placed? I dont believe the additional has affected the view, as it looks similar to the output that was rendered prior.
The script links to the external url, but the display text is doubled and displays a symbol. see image.
Thanks,
Wrina
Wrina
Thanks