开发者

Using Drupal 7, how do you add fields to images, similar to imagefield_extended in D6?

I'm attempting to add an additional field to images. e.g. position, left or right.

So the user can add m开发者_如何学编程ultiple images and specify left or right position.

In Drupal 6, one would use imagefield_extended or cck multigroup.

Using Drupal 7, how do you add fields associated with images?

The user should be able to reorder these images and their associated data on the node/add or node/edit screen.


Have a look at http://drupal.org/project/field_collection, that might be want you are looking for.

Put simply, field_collection is a field to which you can attach fields. So you could create a field, add an image field to it and any number of other fields which are then automatically grouped.

There is also the media project, which exposes an media entity which can be an image and you can directly attach fields to: http://drupal.org/project/media

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜