Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Offline
Re: Why is txp:text item="next" capitalised?
etc wrote #341118:
There is no
previousstring,previt 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