2

I have a channel field that is a description of an audio file. I want to list that entire field on the actual page for the selected audio. On the main listing of all the audio files, I'd like to have only an excerpt of that field, giving the user some idea of what the audio is about, but not the entire field. I would like the excerpt to end with elipses, indicating that there is more to be read by clicking the link.

I know I can accomplish this by having multiple channel fields, but I am sure there's a way to do it with just the one field, I'm just unaware of what it is, and I can't seem to locate anything in the user guide.

I'd appreciate any help you can provide. thanks!

(by the way, I love this community! One day I hope to be knowledgeable enough to contribute, and not just consume.)

3 Answers 3

4

An add-on I've used for this purpose is David Dexter's Snippet. Does just what you're looking for. Keep in mind however that if your full description is a RTE field, you may have to use an HTML stripper before using the shortening tool.

2
  • Are you sure that's a Croxton plugin? It says it's by David Dexter.
    – kmgdev
    Feb 25, 2013 at 23:55
  • @kgrote yes you're right. The x had my lines crossed! Corrected now above. Feb 26, 2013 at 3:34
6

Hacksaw is also a great plugin for that. It has a few more options than Snippet, like the ability to omit HTML tags and more refined cutoff parameters.

2

You can also just use the 'Word Limiter' plugin by Rick Ellis of Ellis Labs. I believe it comes with the basic install.

{exp:word_limit total="50"}{audio_summary}{/exp:word_limit} …

I frequently use with a 'strip HTML tags' plugin, to do this. Personally, I like when people write an actually summary, but there's plenty of time when the first 25, 50, or 100 words is just fine as a teaser.

1
  • Independent summaries are generally better for SEO, it's true. But I agree, sometimes you just don't give a darn :)
    – kmgdev
    Feb 26, 2013 at 16:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.