Is it possible to include certain areas (html or css) where reftagger should tag instead of excluding all the other areas where reftagger should not tag?

Page 1 of 1 (5 items)
This post has 4 Replies | 1 Follower

Posts 5
gesundelehre | Forum Activity | Posted: Sun, Oct 11 2015 6:54 AM

Is it possible to include certain areas (html or css) where reftagger should tag instead of excluding all the other areas where reftagger should not tag?

E.g. if there is only a small area on the page, where reftagger should tag references.

Thanks in advance.

Posts 13420
Mark Barnes | Forum Activity | Replied: Sun, Oct 11 2015 6:59 AM

You can exclude certain CSS classes or HTML tags by clicking on Advanced settings on http://reftagger.com/customize/ 

Posts 5
gesundelehre | Forum Activity | Replied: Sun, Oct 11 2015 7:21 AM

I've already seen that. but is it possible to do the opposite?

Posts 1246
David Mitchell | Forum Activity | Replied: Sun, Oct 11 2015 11:10 AM

If you set the "tag automatically" option to false in the script, then after reftagger lads, it will have a "tag" method that can be called on individual DOM nodes.

David Mitchell
Development Lead
Faithlife

Posts 5
gesundelehre | Forum Activity | Replied: Tue, Oct 13 2015 8:26 AM

Could you maybe help in doing so?

1) do you mean, to download the "http://api.reftagger.com/v2/RefTagger.de.js" javascript and modify it locally?

OR do you suppose to add to the settings the line

,tagAutomatically: "false"

like in the example here:

<script>
    var refTagger = {
        settings: {
            bibleVersion: "LUO1545"
,tagAutomatically: "false"           
        }
    };
    (function(d, t) {
        var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
        g.src = "http://api.reftagger.com/v2/RefTagger.de.js";
        s.parentNode.insertBefore(g, s);
    }(document, "script"));
</script>

2) Afterwards, how can i call this tag-method you were speaking of?

Thanks for taking the time to answer

Page 1 of 1 (5 items) | RSS