Recent blog posts
Text Formatter Module
amariotti — Fri, 12/04/2009 - 12:34
Every once in a while I'll run into a request for one of my Drupal sites which has a module that will accomplish it. Sometimes I will remember the name, but most times I will not due to the plethera of modules that come across on a daily basis. Today that module was "Text Formatter." I'm not sure I totally dig the name that they've come up with, but the module is a lifesaver.
When using CCK Text Fields, that have multiple pieces of data, have you ever wanted to control how they're displayed on the node page instead of the default way? Well, that's where this module comes in. Under your CCK Display properties for that content type there will be some new options on how to display this field. It comes with the following options:
- a comma separated list
- a list separated with commas and an "and"
- a list separated with commas an "and" and a period
- an ordered list, and an unordered list
In most cases those will cover pretty much everything. In my case we were creating a field for a list of instructors of a course and the way CCK was displaying them on my node was unacceptable! Now, I could've done some work on the CSS to try and get it to where I wanted it, but why not just install this module and change my display option on that field? That's exactly what I did, and this was the result....
Beautiful (if I had more time I would've done one that didn't display private e-mails, at least I get my point across!)!
- amariotti's blog
- 11685 reads