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

From JReviews Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
You need to edit Joomla's com_content template file:
 
You need to edit Joomla's com_content template file:
*<span style="color: blue">\components\com_content\views\article\tmpl\default.php</span>
+
*<span style="color: blue">/components/com_content/views/article/tmpl/default.php</span>
  
  

Latest revision as of 16:23, 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