I have a run time list of image files with their fid's. I am using Media module to handle image files. I want to load only specific set of image files fid's in the media browser on node add/edit page.
Please help me to achieve this specific stuff.
I have a run time list of image files with their fid's. I am using Media module to handle image files. I want to load only specific set of image files fid's in the media browser on node add/edit page.
Please help me to achieve this specific stuff.
This is little bit tricky. Media browser generally opens all the files. So, when we present the file field in the front end, we need to pass file type (Even we can pass fids too, after uploading the files).
On the views side either using views_query_alter or a filter in the views we need to filter them out.
Using this scenario we can alter media browser files options.