Joomla 3.4 Stable Version, Content Plugin
Simply explain the problem > click here
Picture of custom field which assigned '5555' : http://i.stack.imgur.com/5qlsS.png
Expected Output: 5555
Real Output : defaultvalue
Print Output Code
$plugin = JPluginHelper::getPlugin('content', 'signal');
$params = new JRegistry($plugin->params);
echo $params->get('custom_1','default_value');
XML Code
<field name="custom_1"
type="text"
label="Custom Field 1"
/>
From the image it seems that the parameter you try to acess is not in the plugin ,but it is in the article (new field created by plugin) so try to use this code
$params= json_decode($this->item->attribs);
echo $params->custom_1;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.