Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Offline
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
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
Pages: 1