Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Say I have an image field and several different Image Styles (image cache presets) set up. I would like to allow my content editors to be able to choose from the list of available presets during content creation.

Any Ideas on this is achieved? Off the top of my head it seems like a custom module might be in order...

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Luckily enough there's already a module that does exactly this, Formatter Field. The example use case given on the module page is exactly the same as yours:

The formatter field module provides a mechanism for specifying a formatter and formatter settings to be used for displaying a field, on a per-entity basis. By default, Drupal provides formatters and settings per entity bundle, but in certain situations it is necessary to choose the formatter at the entity level.

For example, say you have a page node with an image field. Normally, you would select an image style as the formatter, and all page nodes would use that same image style. With this module, you can add a formatter field to page nodes, which is hooked up to the image field. Then when the node is created or edited, the image style can be selected per-node.

share|improve this answer
    
super. clive to the rescue once again. –  ricardoom Jun 28 '12 at 17:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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