Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

adi_title

Summary

adi_title will output an abbreviated version of an article’s title.

Usage

You can use <txp:adi_title /> in place of the standard <txp:title />.

See the help supplied with the plugin, or have a look online

The idea behind adi_title is to provide some flexibility with article titles, by enabling different versions of the same title to be used. Some specific instances where I’ve used it are:

  • with a series of titles “First one”, “Second one”, “Third one” etc, where I wanted an individual title (e.g. “First one”) displayed in full but with a list of links using abbreviated titles (e.g. “First”, “Second” …) to the others
  • with more meaningful titles visible in the Admin Article View (e.g. “Some topic – Some aspect”) but abbreviated on the webpage (e.g. “Some aspect”)

Examples

To give you an idea of what it does, here are some examples:

<txp:adi_title length="2" /> – output the first 2 words, e.g. “This title is a bit too long” becomes “This title …”

<txp:adi_title offset="-2" /> – output the last 2 words, e.g. “Not The End” becomes “The End …”

<txp:adi_title length="5" append="!" /> – output the first 5 words & append exclamation mark, e.g. “I bet you can’t guess what this says” becomes “I bet you can’t guess!”

<txp:adi_title offset="1" append="" separator="-" /> – use a hyphen as the separator & skip the first slice, e.g. “Good morning Smithers-Jones” becomes “Jones”

Article Request Count:
Keywords/tags:
Initially released:
6 jul 2008
Posted here:
06 Jul 2008
Article modified:
12 Aug 2008

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern