In Joomla, at this page: /component/com_content/views/articles/tmpl/default.php
There is this code (about line 62):
<?php if ($canEdit) : ?>
<li class="edit-icon">
<?php echo JHtml::_('icon.edit', $this->item, $params); ?>
</li>
<?php endif; ?>
It shown only the edit icon, i want add next to icon, a text "Edit page".
PS: The text must be inside tag: Edit page
How to do this?
You need to go to:
components\com_content\helpers\icon.php
There on line 126 (in Joomla 2.5.9) you'll see
$output = '<span class="hasTip" title="'.JText::_('COM_CONTENT_EDIT_ITEM').' :: '.$overlib.'">'.$button.'</span>';
You need to enter your text just after
</span>
And save it. But be aware- after updating Joomla this changes might be goes away...
!BUT! The other solution can be done with jQuery- and you dont need to worry about updating. I can explain it too, if you need.