1

In my node creating form i have two Long Text fields, they are:

  1. Article
  2. Lists

enter image description here And i have created two Text Formats they are:

  1. Article
  2. Lists

enter image description here
Now, is there any Drupal way to assign:

  • Article (field_article) field with Article Text Format
  • Lists (field_lists) field with Lists Text Format

If not, then how i can do it Programmatically in node node--article.tpl.php? or any other idea?
- Thanks

3

Use the better formats module. The module allows you set text formats per field.

Better formats is a module to add more flexibility to Drupal's core input format system.

  • Does Better Formats still work for Drupal 7? Its D7 release is very old. – wizonesolutions May 1 '15 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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