Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
inputting special characters in the title of a post – tetragram
We were playing with using tetragram characters in a post. Textpattern doesn’t seem to like those at all:
- inputting the raw character ( U+1D319) — and everything that follows it – is swallowed and vanishes upon saving for both the title and the body.
- inputting the equivalent html entity (& #119577;) works only for the body of the post, it still gets swallowed for the title.
Does anyone has a suggestion on how to handle this ? Disabling Textile for the post doesn’t help at all.
(edit – the same happens here on the forums… upon hitting ‘submit’. Preview works fine, see that post)
Last edited by phiw13 (2010-05-28 07:07:57)
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: inputting special characters in the title of a post – tetragram
I’ve gotten around this by making a “formatted title” custom field, which (if it exists for a given article) is displayed instead of the real title on the front end.
Textpattern’s article title field is limited in what it can include (no HTML, special entities, etc.) I think because of how it is used by the database, in feeds, etc.
Offline
Re: inputting special characters in the title of a post – tetragram
Hmm, nice idea, thanks Jason. A custom field kinda works for the front-end (as long as you don’t forget about the escape
attribute…); with some bits of a <txp:if_custom_field
it replaces the title nicely, both in contents part and in the browser title-bar/tab.
The url-title can be worked around with percentage encodings, although no browser that I know do the sane thing and show the character in the url.
There is still an issue, though: the custom field is not used as a title in the feed. At least I haven’t found a way so far.
—-
(anybody has an idea as to why it is impossible to use the raw character, only the html entity works? Is that because MySQL is not yet ready to handle characters in the SMP – supplementary multilingual plane ? Wordpress appears to have the same issue.)
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline