Please help me write the fields. I cloned the scripts and started writing link generation. But I can’t figure out how to get the settings from the xml?
<field
name="account_path"
label="COM_JSN_ACCOUNT_PATH"
description ="COM_JSN_ACCOUNT_PATH_DESC"
type="text"
/>
<field
name="account_window"
label="COM_JSN_ACCOUNT_WINDOW"
description ="COM_JSN_ACCOUNT_WINDOW_DESC"
class="btn-group"
type="radio"
default="_blank"
>
<option value="_self">JNO</option>
<option value="_blank">JYES</option>
</field>
public static function account($field)
{
//require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$value=$field->__get('value');
//$accountPath=JsnHelper::getFieldOptions($alias);
$path=$field->element[0];
if (empty($value))
{
return JHtml::_('users.value', $value);
}
else
{
JPluginHelper::importPlugin('content');
return JHtml::_('content.prepare', '<a href="'.$path.'/'.$value.'" target="'.$target.'">'.$value.' '.$path.'</a>', '', 'jsn_content.content');
}
}