Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 01:25:18

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,509
Website

Why is txp:text item="next" capitalised?

This seems odd: the output of <txp:text item="next" /> is capitalised, at least in the context of <txp:link_to_next/>, but <txp:text item="previous" /> is not.

Markup used:

<txp:link_to_next wraptag="span">
  <txp:text item="next" />
</txp:link_to_next> ||
<txp:link_to_prev wraptag="span">
  <txp:text item="previous" />
</txp:link_to_prev>

Output:

<a title="foo" href="xxx" rel="next">Next</a> ||  <a title="bar" href="yyy" rel="previous">previous</a>

(and BTW, there is no way to suppress the title attribute… nitpicking x2)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#2 Today 07:34:21

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,041
Website GitHub

Re: Why is txp:text item="next" capitalised?

Probably a rogue Lang string. They should both be capitalised.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 Today 08:35:20

etc
Developer
Registered: 2010-11-11
Posts: 5,539
Website GitHub

Re: Why is txp:text item="next" capitalised?

There is no previous string, prev it is.

Offline

#4 Today 08:41:51

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,509
Website

Re: Why is txp:text item="next" capitalised?

etc wrote #341118:

There is no previous string, prev it is.

Ah… that would explain it. I had that snippet on the test site for a very long time – verbatim; no idea where previous comes from


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB