Yeah! My first txp plugin. I use external links all the time and have longed for a simple way to write them WITHOUT client-side Javascript dependency. I looked for this in other plugins to no avail…
Now, it’s as simple as writing the link like this:
my "(_)external":http://elsewhere.com link.
It’s a hack. With the <txp:jra_ext_link> tag wrapping the page, all links w/ class="_" get a target="_blank" added server-side.
Get the v0.2 installation text, enjoy and let me know if it helps.
And please let me know whether it could be written more efficiently… E.g., what’s the performance cost of parse($this) when this is the whole body?
However, I did experience gruesome slow downs during this development bout. Turns out is had nothing to do w/ my plugin. It had to do w/ Spam blacklists pointing to spamhaus and completely slowing down each page refresh. There’s forum discussions about that.
IMO, it is a design flaw that blacklists are checked when READING the site. They should be checked only when WRITING to the site — take the hit when posting. It’s not outrageous then, whereas it’s useless when reading. One can change the code in txp, or one can remove the list from the Admin|preferences|advanced|Spam blacklists and speed is back.
Sorry to go on off topic. The plugin is just fine. Nothing to do w/ my lost Sunday trying to trace the slowdown :-)
| rsx_page_number >> |
Answering my own question, it really doesn’t look like there’s any cost. parse() needs to happen, and keeps happening recursively and double at times, across all tags. IOW, I don’t think it’s an issue.