I'm trying to add removing the content block from the frontpage as an option to my template. In templatedetails.xml I have added:
<field name="showfrontpagearticles" type="radio" label="Show Frontpage articles"
description="Set this value to 1 to show the frontpage, otherwise it will be hidden" default="1"
checked="checked"
class="btn-group">
<option value="0">HIDE</option>
<option value="1">SHOW</option>
</field>
Then in main.php I have replaced the <jdoc:include type="component" style="xhtml" /> line in main.php to this:
<?php $pageview = JRequest::getVar('view', '');
$jb_frontpage = $this->params->get('showfrontpagearticles'); ?>
<!-- Main content hide it on the frontpage -->
<div id="maincontent">
<jdoc:include type="component" style="xhtml" />
</div>
<?php } Elseif ($jbfrontpage="1"
{ ?>
<div id="maincontent">
<jdoc:include type="component" style="xhtml" />
</div>
<?php } ; ?>
This is removing almost all the content (including a module in showcase). Any help?