Adding RefTagger to a Drupal Site

LogoDrupal is popular open source Content Management System (CMS) software. Many churches and ministries use it.

A few days ago I got a request from an individual who wants to add RefTagger to his Drupal site but isn’t sure how to get it set up, so I thought I’d provide a quick tutorial.

Unfortunately, Drupal doesn’t allow you to edit the code of your themes from the admin panel, at least not that I can see. But if you have access to your site’s files via FTP, you can add RefTagger very easily.

Here are the simple steps you need to follow:

  1. Use an FTP program to navigate to the folder where you installed Drupal.
  2. Open the “themes” subfolder, and then open the folder for the specific theme you are using. (The default theme is Minneli, which is a subtheme of Garland, so you’ll find the file in the “garland” folder.)
  3. Locate the page.tpl.php file, and save a local copy (and a backup copy too).
  4. Open the file in Dreamweaver, WordPad, or your favorite code editor.
  5. Scroll to the bottom and paste the customizable RefTagger code before the </body> tag.
  6. Save the file and upload it back to your server.

That’s it. RefTagger is now transforming the content of your Drupal site!

If you’re using RefTagger on your Drupal site, please let us know. We’d love to see how you are putting it to use.

For help with other sites, see the tutorials section on the RefTagger page.

11 Comments

NO! There is a much easier method. Drupal is so powerful with it's BLOCKS concept.

  1. Log in as the administrator.
  2. Navigate to admin>Site building>blocks
  3. Click on ADD block or simply type this in your address bar: http://www.yoursitename.com/admin/build/block/add
  4. Paste the reftagger code into a block and name it something ingenious like "Reftagger".
  5. Change the "input format" to full HTML and save the block.
  6. Then activate it as a footer block, it will remain invisible but will immediately tag every reference on your site!

Don't mess with the template's unless you have too, keep it simple and use Drupal the easy way. :-)

Thanks, Thomas. That's good to know. However, I'm not sure your way is much easier than mine. Notice that we both have 6 steps! :)

Do you use Drupal for your site?

Yes powered by Drupal and happy about it! :-)

The beauty of using a block as opposed to hacking the source (page.tpl.php) is that it's all done in a web front end.

Moreover if you do an upgrade (like apply a security update) to your site the hand edited code get's overwritten and thus lost. But the block stays until you disable it.

That is one of the purposes of blocks.

Thanks, Thomas. Good points. Glad to know of a better method.

We're working on a Drupal version of SharperIron for future release. So far, RefTag doesn't seem to be working. To be precise, we're using vbDrupal (a fork of Drupal) but that shouldn't matter. We're also on ver. 5.
I put the code in page.tpl.php right before body. But I'm not seeing any changes in the content.
Will send email w/details, Phil, and we can work it out.

Working now at SI dev site using Phil's method. Looks great. Haven't tried Thomas' method yet.
By the way, we're using vbDrupal (http://vbDrupal.org) a fork from Drupal so I can verify that the template edit method words in vbDrupal 5.x.

We also have vBulletin linked in (that's what vbDrupal does), but I haven't set up RefTagger in the forum yet.

I've worked with Drupal for years, and the way Thomas specifies is definitely the recommend way for Drupal! Blocks are specifically intended for a purpose just like RefTagger.

Actually... the best way to implement RefTagger in Drupal, is with a Drupal module. At the link below you can find Drupal 5 and 6 modules for RefTagger, that allow you to configure RefTagger all within Drupal without having to mess with templates, blocks or any code.

http://rambeck.com/blog/2008/10/reftagger-drupal-module

We have it up and running on our development site now using the Module method, 5.x version. We can verify also that it works for vbDrupal 5.x.

I think this module is fantastic and would love to use. The one problem is that my site in Portuguese. Any chance of adding a Portuguese translation? I know some changes would need to be made in the file to account for different spellings and changes from the English to the Portuguese. I would be willing to help in any way.

Thanks and God Bless
jason

Great tool! Very useful. I like how it even provides a choice of translations to quote from.

Leave a comment

Subscribe

Enter your email address:

Bible.Logos.com

Bible Search

Verse:
John 3:16; Jn 3:16; John 3

Keyword:
Salvation, Jesus, Gospel

With Operators:
AND, OR, NOT, “ ”

Add this to your site!

Social Networking

RefTagger

Bible Options

Add this to your site!

Recent Comments

  • mike: Great tool! Very useful. I like how it even provides read more
  • Jason: I think this module is fantastic and would love to read more
  • Aaron Blumer: We have it up and running on our development site read more
  • Nathan Rambeck: Actually... the best way to implement RefTagger in Drupal, is read more
  • Joshua Stewardson: I've worked with Drupal for years, and the way Thomas read more
  • Aaron Blumer: Working now at SI dev site using Phil's method. Looks read more
  • Aaron Blumer: We're working on a Drupal version of SharperIron for future read more
  • Phil Gons: Thanks, Thomas. Good points. Glad to know of a better read more
  • Thomas Black: Yes powered by Drupal and happy about it! :-) The read more
  • Phil Gons: Thanks, Thomas. That's good to know. However, I'm not sure read more

September 2009

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Archives

Employee Blogs

Bob Pritchett
RSS FireSomeoneToday
RSS BobPritchett.com
Rick Brannan
RSS Ricoblog
RSS PastoralEpistles.com
Mike Heiser
RSS The Naked Bible
RSS Scribal Practices
RSS PaleoBabble
Steve Runge
RSS NT Discourse
Bill Nienhuis
RSS OriginalExpression
Sean Boisen
RSS Blogos
Phil Gons
RSS PhilGons.com
Ryan Burns
RSS Going to Seminary
John Barry
RSS The Infinite in Everything

Poll

  • What’s your favorite kind of blog post?