- Issue created by @amjad1233
In the Views Datasource module for Drupal 7, the JSON output for image fields is missing the file ID (fid) information. This information is critical for some applications that rely on the unique file identifier for further processing or referencing images and avoid duplication.
The proposed resolution is to modify the _views_json_render_fields
function in the views_json.module
file to include the file ID (fid) in the JSON output. This involves adding lines of code to set the id
attribute of the image fields in the JSON response.
There are no user interface changes associated with this patch. The changes only affect the JSON output format.
There are no API changes associated with this patch.
There are no data model changes associated with this patch.
Needs review
1.0
Code