This patch adds configurable ellipsis marks (...) between the teaser and the 'Read More' link.

Comments

aaron’s picture

Status: Active » Needs review

forgot to set status

aaron’s picture

StatusFileSize
new1.59 KB

that should really be check_plained so we don't end up with a security alert... :P

new patch attached.

aaron’s picture

Here, this one is even better: it takes the   and moves it into the variable, and puts the whole thing in the theme layer, where it belongs. Also using filter_xss rather than check_plain, so we can see the HTML for the hard space properly (in addition to anything else an admin might want to stick in there, such as … (…). In fact, this uses that for the ellipsis anyway (the character for three dots…, rather than three periods..., which can sometimes be better for typesetting). This allows editors to change that to ... (...), . . .  (. . . ), & #x2026; (…), & #8230; (…), an image, or whatever their needs require.

aaron’s picture

StatusFileSize
new2.44 KB

a patch would be nice, of course...

todd nienkerk’s picture

aaron: This is awesome. Thanks!

Let's change the notion of "ellipsis" to a more generic "separator." The default should be a single, non-breaking space. Can this be done without double-encoding these characters on output?

aaron’s picture

StatusFileSize
new2.43 KB

done. and are the characters being double-encoded for you? they shouldn't be, as I'm using a straight filter_xss.

aaron’s picture

StatusFileSize
new2.44 KB

changed all variables to $separator, removing all last vestiges of $ellipse.

todd nienkerk’s picture

Status: Needs review » Fixed

This has been committed and will be released as 6.x-5.0-RC2. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.