I want to create a new parameter in my template to display social icons in Joomla articles. I have added the parameter to my templateDetails.xml file like that:
<fieldset name="my_params" label="MY_PARAMS_FEATURES">
<field name="CONTENT_SOCIAL_ICONS" type="radio" class="btn-group" default="0" description="If you enable this option, social share buttons (Facebook, Twitter, Google+) will be displayed in the Joomla articles." label="Social Share for Articles">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
</fieldset>
And in /html/com_content/article/default.php I have added this at the top of the page:
$content_social = ($this->params->get("CONTENT_SOCIAL_ICONS",1));
And this:
<?php if ($content_social) : ?>
<div class="social-share">
<span>social share button is here</span>
</div>
<?php endif; ?>
But when I change the parameter from my Template Manager it doesn't effect whether to display or not. How can I get the template parameter in the Joomla article?
Thanks