Search code examples
phpjoomlajoomla3.0joomla3.1

Add a quick icon in Joomla 3


Anyone know how to add a quick icon or maybe even edit the current list of quick icons in Joomla 3.1? To be more specific, that would be the series of links that appear on the right side of the screen immediately after logging in to Joomla admin. I searched and couldn't find this question on stackoverflow.


Solution

  • If you go to the following file:

    administrator/modules/mod_quickicon/helper.php
    

    You will see on the start of line 51, arrays such as the following:

    array(
        'link' => JRoute::_('index.php?option=com_content&task=article.add'),
        'image' => 'file-add',
        'icon' => 'header/icon-48-article-add.png',
        'text' => JText::_('MOD_QUICKICON_ADD_NEW_ARTICLE'),
        'access' => array('core.manage', 'com_content', 'core.create', 'com_content', )
    )
    
    • Line 1, is the link.
    • Line 2, go to media/jui/css/icomoon.css to see what is available.
    • Line 3, I'm not actually too sure about but will update when I do.
    • Line 4, is the text such as Add New Article, but as you can see above, it's a language string
    • Line 5 is the text you see such as "Add New Article", but in the code above, it's a language string

    Hope this helps