0

Is there a way to add content to a content type's field in a mechanized way? Say for instance I have a field for how many servings a recipe is going to make but I don't want my user to have to write "Makes" and "Servings." over and over again and risk spelling something wrong.

Is there a way to make it so all she needs is a number field and I can automagically make it say "Makes" [number] "servings."

Perhaps there is a hook or module that I can use?

1

You can add prefix and suffix in the display settings of the field with the Simple Field Formatter module

  1. Download and enable the module
  2. Go to admin/structure/types/manage/mycontenttype/display
  3. Click on the settings icon for the specific field
  • please see my updated answer, forgot to include module – undersound Feb 6 '14 at 6:00
  • This module works only with text fields – Joel James Mar 2 '17 at 7:13

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.