There are times I do not want RefTagger to kick in, especially when I am using an unsupported Bible version (such as the Geneva). I see that there are instructions on how to add code, but they are vague and do not give examples. Can someone elaborate on this for me? http://stormbringer005.blogspot.com, http://asoldierforjesus.blogspot.com
If you want to prevent reftagger from searching part of the page, you can add a CSS class to the element you want reftagger to skip, and then tell reftagger which CSS classes to skip with a line like:
Logos.ReferenceTagging.lbsNoSearchClassNames = [ "no-reftagger", "some-other-css-class-to-skip" ];
You can also restrict reftagger to stay within a certain DOM element. The following line will tell reftagger to start it's search within the element with ID "main-wrapper", but not search anywhere on the page outside that element.
Logos.ReferenceTagging.lbsRootNode = document.getElementById("main-wrapper");
Does this help?
Bryan
No, I speak English, not tech lingo.
"you can add a CSS class to the element you want reftagger to skip, and then tell reftagger which CSS classes to skip with a line like:
Logos.ReferenceTagging.lbsNoSearchClassNames = [ "no-reftagger", "some-other-css-class-to-skip" ];"
Two responses to that: HUH??? and HOW???
You're assuming I'm a programmer. I did not learn "add a CSS class to the element".
Can you tell me which part of your page you want to prevent reftagger from searching?
Since I am using it for Weblogs, there are no specific parts of pages that I want it to skip. That is, it will change with each post. I have a post scheduled for tomorrow, and I started the article with a quote from the Geneva Bible. I left off the reference entirely because I cannot tell RefTagger to leave it alone.
Or am I screwed up? I thought that we could use RefTagger, and then, if we wanted something left alone, we could insert a bit of code in the Edit "HTML screen" for each instance. So maybe I'm wasting our time.
I see. That should be easy enough.
1) Add this line to reftagger's script, anywhere before the last line:
Logos.ReferenceTagging.lbsNoSearchClassNames = [ "noreftagger" ];
2) Edit the HTML of your post. What you want to do is wrap an HTML element around the text that you don't want tagged. Say your existing HTML looks like:
<p>This is a paragraph of my post, and I don't want John 3:16 to be tagged by reftagger.</p>
You would change it to:
<p>This is a paragraph of my post, and I don't want <span class="noreftagger>John 3:16</span> to be tagged by reftagger.</p>
This will tell reftagger not to look at the text within that span. You can put the class="noreftagger" on any HTML element. For example:
<p class="noreftagger>This is a paragraph of my post, and I don't want John 3:16 to be tagged by reftagger, but RefTagger won't look at this entire paragraph, so I'm safe.</p>
Does that help?
Edit: Sorry, it looks a little confusing since we use reftagger on this page =/
Yes and no. I put the lines in and was excited when I did a preview of a test post, having the same reference twice in one line. I told it to ignore one, so it ignored that one and did it's work on the other. Great!
Oddly, when I put the <span class="noreftagger> and the </span> tags in an existing post, it refused the edits. OK, so it may only work from this day forward. I can live with that. Puzzled, but I can live with it. But then, Blogger has some strange things that it does in formatting and HTML!
Thanks for your help. EDIT: I get like a bulldog on this stuff, and have lost sleep by staying up to try to fix things. In this case, I was glad that you told me that I could do larger sections as well as the individual verse. Did that, and it worked. Thanks again!