Adding RefTagger to a Drupal Site: The right way.
Over on the Logos Bible Software Blog Phil did a write up on Adding RefTagger to a Drupal Site. I really like RefTagger for the way it turns any bible reference into a link with a snazzy little tool tip. (Like John 3:16) But unfortunately Phil's tutorial leaves a bit to be desired.
He advocates hacking the page.tpl.php template file for your theme. But doing so is not recommended for the following reasons.
- You risk messing something up and ruining your theme. This may not be a big one for some folks who consider themselves savvy but if you're uncomfortable at all - hacking source files is a bad way to make changes.
- You will definitely lose your work if you install an upgrade since it will just overwrite your changes.
- If you change themes you're work is also lost and you have to keep hacking new template files.
With all due apologies to Phil what's the recommended/best method?
Use Drupal's powerful Blocks which are designed for insertion of various code excerpts.
- Log in as the administrator.
- Navigate to admin>Site building>blocks
- Click on ADD block or simply type this in your address bar: http://www.yoursitename.com/admin/build/block/add
- Paste the reftagger code into a block and name it something ingenious like "RefTagger".
- Change the "input format" to full HTML and save the block.
- 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 absolutely have too, keep it simple and use Drupal the easy and correct way. :-)
Related Content:
- tcblack's blog
- Login or register to post comments
Send to friend
User login
Recent comments
- Of course
1 day 22 hours ago - Hi,
I have the same question.
4 days 6 min ago - I was wondering if you could
4 days 9 hours ago - I could use some help...
I
4 days 4 min ago - Hmm. I'm not really sure. I
1 week 4 days ago - The beta testers, we've all
3 weeks 3 days ago - Thank you soooo much
4 weeks 1 day ago - I went searching in L4
Found
4 weeks 1 day ago - Yes, it surprised me too...
4 weeks 2 days ago - The Daily Bible Study Series
4 weeks 4 days ago
Related Content
You might also be interested in these articles:
- Hengstenberg: History of the Kingdom of God Under the Old Testament, Vol. 2
- Candlish: The Fatherhood of God
- Hengstenberg: Commentary on Gospel of John, Vol. 1
- James Denney: The Death of Christ
- Patrick Fairbairn: Commentary on the Pastoral Epistles
- Libronix PBB Files
- Highlighting Tutorial - The Video


Comments
I am using Drupal 5 here and in the footer it did not appear, in the side column it did not work. Could there be a conflict with jQuery? No time to look into it, but putting it in a block doesn't seem the right way. Probably it would be better to develop a module for this or use an already existing filter for this purpose: http://drupal.org/project/scripturefilter