coder1.com

  • home
  • drupal articles
  • contact
Home

Nodes

Disable TinyMCE in Node Body Based on Node Type

Mike Milano — December 5, 2008 - 12:11pm

There's been a few sites I've used WYSIWYG editors on recently where I've run into the issue of needing to disable it on certain text areas. TinyMCE supports this with a theme override just fine, however, it's not so simple when you have multiple text areas with the same name.

Take the node edit form. For every node type, the body uses the same name.

A practical example of when you would need to disable a WYSIWYG editor would be when filling a node body with previously designed HTML like when you design an HTML Newsletter.

  • Drupal
  • Newsletter
  • Nodes
  • Theme
  • TinyMCE
  • Add new comment
  • Read more

Drupal Search : Index All Fields of a CCK Node

Mike Milano — October 1, 2008 - 3:04am

The Drupal Search API is powerful and pretty intuitive, but finding details on how to do something as simple as enabling searching on fields other than title and body could be a little daunting.

It's actually quite a simple concept. Anything exposed to your node view will be indexed. You can easily accomplish this by editing your content type and setting the Display Fields setting to Plain Text.

  • CCK
  • Drupal
  • Nodes
  • Search
  • Add new comment
  • Read more
Syndicate content

Poll

Have you used any NoSQL Databases?:

User login

  • Request new password

Navigation

  • Recent posts

  • home
  • drupal articles
  • contact