Difference between revisions of "How to remove Joomla edit button from listing detail page"

From JReviews Documentation
Jump to: navigation, search
Line 12: Line 12:
 
</source>
 
</source>
  
 +
 +
If this won't work, it is possible that your Joomla template overrides this file. In that case you will need to do the same here:
 +
 +
*<span style="color: blue">{site_root}/templates/{your_template}/html/com_content/article/default.php</span>
  
  

Revision as of 16:22, 23 August 2011

You need to edit Joomla's com_content template file:

  • \components\com_content\views\article\tmpl\default.php


And delete this:

<?php if ($canEdit) : ?>
<td align="right" width="100%" class="buttonheading">
	<?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>


If this won't work, it is possible that your Joomla template overrides this file. In that case you will need to do the same here:

  • {site_root}/templates/{your_template}/html/com_content/article/default.php