Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-16 11:27:04

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Link Prefetching

Is it possible to prefetch with TXP tags? I tried
<code> <txp:if_individual_article><link rel=“prefetch” title=”<txp:next_title />” href=”<txp:link_to_next />” />
<link rel=“prefetch” title=”<txp:prev_title />” href=”<txp:link_to_prev showalways=“1” />” /><txp:else /></txp:if_individual_article>
</code>
But it turns up a blank link (“”). I also tried <code><txp:link_to_prev></txp:link_to_prev></code>, but it output the <code>a href</code>, as it is supposed to.

Offline

#2 2006-01-19 06:07:32

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Link Prefetching

Sorry for bumping…

<code>
<txp:if_individual_article>
<link rel=“prefetch” title=”<txp:next_title />” href=”<txp:link_to_next showalways=“1” />” />
<link rel=“prefetch” title=”<txp:prev_title />” href=”<txp:link_to_prev showalways=“1” />” />
<txp:else />
</txp:if_individual_article>
</code>

Offline

#3 2006-01-31 04:03:09

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Link Prefetching

(bump…again)

Is there a way to output the raw URL of the next and previous articles?

Last edited by deldindesign (2006-01-31 04:03:39)

Offline

#4 2006-03-08 09:11:11

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Link Prefetching

^

Offline

#5 2006-03-08 12:50:59

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Link Prefetching

One might think that <txp:link_to_next /> might work, but it doesn’t seems to. Maybe a tiny plugin could do it.

Offline

#6 2006-10-29 07:37:46

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Link Prefetching

9 months later, I found a simple solution.

Offline

#7 2006-10-30 02:58:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Link Prefetching

link_to_next will work, just put <txp:article pgonly="1" /> before it.

Offline

Board footer

Powered by FluxBB