在Joomla,在此页面:/component/com_content/views/articles/tmpl/default.php
有这段代码(约62行):
<?php if ($canEdit) : ?>
<li class="edit-icon">
<?php echo JHtml::_('icon.edit', $this->item, $params); ?>
</li>
<?php endif; ?>
它只显示了编辑图标,我想在图标旁边添加一个文本“编辑页面”。
PS:文字必须在标签内: 编辑页面
怎么做?
答案 0 :(得分:0)
你需要去:
components\com_content\helpers\icon.php
第126行(在 Joomla 2.5.9 中)你会看到
$output = '<span class="hasTip" title="'.JText::_('COM_CONTENT_EDIT_ITEM').' :: '.$overlib.'">'.$button.'</span>';
您需要在
之后输入文字</span>
并保存。 但请注意 - 更新Joomla 后,这些更改可能会消失 ......
<强>!BUT!强> 另一个解决方案可以使用jQuery完成 - 您不必担心更新。 如果你需要,我也可以解释一下。