0
Welcome Guest! Login
0 items Join Now

Adding new "standard icon"

    • Sue B's Avatar
    • Sue B
    • Hero Rocketeer
    • Posts: 300
    • Thanks: 0

    Adding new "standard icon"

    Posted 14 years 2 months ago
    • I need to add a new icon to the suite of 'standard' icons (PDF, email, print).

      The developer's instructions for the plugin that I'm using is to add a piece of code to the file:
      /templates/yourtemplate/html/com_content/article/default.php
      But I don't seem to have a "com_content" dir in any of my RT themed sites.

      Where else would this be likely to be?

      Thanks,
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: Adding new "standard icon"

    Posted 14 years 2 months ago
    • Joomla's template override system works by checking to see if something in in the /templates/your_template/html/ directory first, then if nothing is there, it uses the core file.

      Since this is an override directory, only the directories and files the template uses are loaded in, so if you have a 3rd party component, you'll need to add it.

      Just add the directory if it's not there and put the files where the developer says they need to go.

      In general, it's a good idea to add an "index.html" file that's blank to any directories you add. This helps to prevent people from being able to browse directory contents. You'll see these "index.html" files in the images directory for your site.
    • Sue B's Avatar
    • Sue B
    • Hero Rocketeer
    • Posts: 300
    • Thanks: 0

    Re: Adding new "standard icon"

    Posted 14 years 2 months ago
    • Thanks Ben, but I'm not sure I'm getting it.

      If I want to add another icon to the existing ones, wouldn't I need to find the code where they live? That is, where is the code that calls up the PDF, email & print buttons on an article? Then I'd add his code to that and "walla!" new icon?
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: Adding new "standard icon"

    Posted 14 years 2 months ago
    • OK, to override a particular file, you can take that file from it's usual location and put it in the templates html directory under the proper directory. Look at the directories that are already in the html directory as examples.

      If you're looking to replace something in "com_content" you can find that file in /JOOMLA/components/com_content/ and then copy it and put in in /JOOMLA/templates/rt_yourtemplate_j15/html/com_content/.

      The developer should be able to tell you what file to copy over and what lines of code to make the changes on.
    • Sue B's Avatar
    • Sue B
    • Hero Rocketeer
    • Posts: 300
    • Thanks: 0

    Re: Adding new "standard icon"

    Posted 14 years 2 months ago
    • Thanks again, Ben. This seems very complicated (but not your fault though!).

      Would I really have to move the com_content directory to live under the template (it seems that older versions of RT templates don't have the com_content and this is where I'm coming unstuck)? Can't I just leave the code for the buttons wherever the heck it is (still haven't found it) and add my new bit?

      Sorry to be so thick on this - I've never phaffed around with this part of Joomla before (and now I know why).

Time to create page: 0.064 seconds