RefTagger and Joomla


Posted by: Joel Larkin in Random Technology on Feb 19, 2009

Tagged in: projects , open-source , linux , life

I recently came across and excellent application for Christian websites called  RefTagger.  This application finds bible verses and links them automatically to the translation of your choice providing a quick reference capability without manually building the links.

Unfortunately this application did not have an easy integration with Joomla, it required manually modifying the template and inserting the appropriate code (which can be a drag if you want to make changes).  I wrote a module to take care of this and it's avaialble in the downloads section of the site. 

This allows for the easy selection of the various options (like translation) and allows a different set of options for different pages (standard module rules apply).  The only caveat is to put this on the 'lowest' module (meaning the one closest to the end </body> tag.).  If this doesn't work the instructions below allow for the creation of a dedicated 'reftagger' module area.

  1. Go Into Template Manager / The Template you want to edit.
  2. Click Edit HTML
  3. Scroll to the bottom and just above the tag add these lines:
    <?php if ($this->countModules('reftagger')) ; ?>
       <jdoc:include type="modules" name="reftagger" style="none" />
    <?php endif; ?>
  4. Save the HTML file and test.
  5. Edit your Module for RefTagger and click inside the position box and type 'reftagger'
  6. You should be able to save this and have reftagger work!