Allow selection of formatter in asset field views listings
Owen Barton - July 24, 2008 - 22:29
| Project: | Asset |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
The current 1.x-dev branch doesn't allow this and forces you to use the default formatter. The 2.x-dev branch does allow this, which was really handy - so I added this functionality back into the 1.x-dev branch.
If the selected formatter (e.g. an imagecache option) is not valid for the asset being added (e.g. a youtube video) then it will fall back to the default formatter for that type. It also let's you select whether to make it a link back to the node or not (there is probably a neater way to do that, but it will take more refactoring and I think that is best left to another patch).
| Attachment | Size |
|---|---|
| views_formatter.patch | 2.28 KB |

#1
Rerolled patch