X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmedia_entity_image%2FREADME.md;fp=web%2Fmodules%2Fcontrib%2Fmedia_entity_image%2FREADME.md;h=9afe4f42db99df7d25fae05febc894c0a418ac8e;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/media_entity_image/README.md b/web/modules/contrib/media_entity_image/README.md new file mode 100644 index 000000000..9afe4f42d --- /dev/null +++ b/web/modules/contrib/media_entity_image/README.md @@ -0,0 +1,46 @@ +## About Media entity + +Media entity provides a 'base' entity for a media element. This is a very basic +entity which can reference to all kinds of media-objects (local files, YouTube +videos, tweets, CDN-files, ...). This entity only provides a relation between +Drupal (because it is an entity) and the resource. You can reference to this +entity within any other Drupal entity. + +## About Media entity image + +This module provides local image integration for Media entity (i.e. media type +provider plugin). The user can map fields from image's Exif data to media bundle +fields. + +### Storing field values + +If you want to store field values you will have to map them to actual bundle +fields. At the momemnt there is no GUI for that, so the only method of doing +that for now is via CMI. + +This whould be an example of that (the field_map section): + +``` +langcode: en +status: true +dependencies: + module: + - media_entity_image +id: photo +label: Photo +description: 'Photo to be used with content.' +type: image +type_configuration: + source_field: field_image +field_map: + mime: field_mime + make: field_make +``` + +Project page: http://drupal.org/project/media_entity_image (if you can't find it, it will be created shortly). + +Maintainers: + - Janez Urevc (@slashrsm) drupal.org/user/744628 + - Primož Hmeljak (@primsi) drupal.org/user/282629 + +IRC channel: #drupal-media