Articles tagged with text

TranslationHelper

By Kjell Bublitz
This uses the HTTP_ACCEPT_LANGUAGE to determine the current users most accepted language. It takes the the first one of all accepted, then looks up the available translations and delivers. If all fails, or no good translation was found, it returns the default string.
[Read more]

Showing a text excerpt around multiple keywords

By JP Mortiboys
On a typical search results page, you want to display an excerpt of each matching item, showing the keywords. TextHelper::excerpt() works, but only for a single word/phrase. This helper finds the chunk of text containing as many keywords as possible.
[Read more]

SMS Text Component

By Doug Bromley
Simple component for sending SMS text messages to mobile devices using the Clickatell API (They provide free test accounts).
[Read more]