When outputting an image field that has a title attribute set, the title attribute is missing. For example:

"field_image" : {
  "src" : "http://example.com",
  "alt" : "My alternative text"
}

It'd be great if we could also get the title attribute, for example:

"field_image" : {
  "src" : "http://example.com",
  "alt" : "My alternative text",
  "title": "My title text"
}

Patch to come...

CommentFileSizeAuthor
#1 image_title-2512994-1.patch2.13 KBtyler.frankenstein
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tyler.frankenstein’s picture

Status: Active » Needs review
FileSize
2.13 KB
jacob.embree’s picture

Status: Needs review » Reviewed & tested by the community

#1 worked for me.

ZeiP’s picture

Status: Reviewed & tested by the community » Fixed

Looks good, thanks for the patch! I committed the patch to 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.