Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-19 17:15:13

groda
Member
Registered: 2007-04-22
Posts: 11

Unlogical behavior

I tried to link to next and previous article and textpattern behaves really strange. Here’s my code:

<p>

< <txp:link_to_prev><txp:prev_title /></txp:link_to_prev> |
<txp:link_to_next><txp:next_title /></txp:link_to_next> >

</p>

If i write it like this, the “prev”-part doesn’t appear at all. I manadged to solve the problem in a rather ugly way bu repeating the “prev”-part, making the code looking like this:

<p>

<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>

< <txp:link_to_prev><txp:prev_title /></txp:link_to_prev> |
<txp:link_to_next><txp:next_title /></txp:link_to_next> >

</p>

This makes everything working fine, but wy? It’s strange indeed.

Offline

#2 2007-05-19 17:24:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Unlogical behavior

If you want to display a < on your website, use &lt; (same for >, which should be &gt;)

Offline

#3 2007-05-20 01:15:41

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

Re: Unlogical behavior

Do you mean that you want this?

<p><txp:link_to_prev>< <txp:prev_title /></txp:link_to_prev> | 
	<txp:link_to_next><txp:next_title /> ></txp:link_to_next></p>

Offline

Board footer

Powered by FluxBB