amariotti.com

  • about
  • blog
  • portfolio
  • resumé
  • modules
  • contact
Home › Blogs › amariotti's blog

Recent blog posts

  • Text Formatter Module
  • Cool Apache ReWrite Trick
  • New RSS Feed
  • Find My iPhone
  • Congratulations, Drupal!
  • Re-Launched on Drupal 6
  • Copying + Pasting from Word into Drupal
  • Page Not Found on Node Creation
  • 1 Year
  • Happy Birthday WWW!
more

Recent comments

  • Turning off PHP suhosin
    36 weeks 13 hours ago
  • The code for D5 is posted
    36 weeks 1 day ago
  • Repost the code please :)
    36 weeks 6 days ago
  • Hi, very nice post. I have
    38 weeks 1 day ago
  • Great post! I'll subscribe
    38 weeks 4 days ago
  • Cool! It works perfectly..
    39 weeks 6 days ago
  • I'm having the same problem.
    40 weeks 4 days ago
  • Hello again. It's working but
    40 weeks 4 days ago
  • I'm having the same issue, it
    40 weeks 5 days ago
  • Yes, when I open the page I
    40 weeks 5 days ago

Blog tags

drupal drupal 6 drupal issue liquidweb module modules that I love os x random rss Salesforce.com software theming
more tags

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....

textformatter.jpg

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!)!

Download here

  • drupal
  • drupal 6
  • module
  • modules that I love
  • amariotti's blog
  • 571 reads

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <b> <p> <br>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You may use <swf file="song.mp3"> to display Flash files inline

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
  • about
  • blog
  • portfolio
  • resumé
  • modules
  • contact