RE: eCommerce: find image by tag in media library
Yes this is the static image. I have about 100 channels and I will upload about 100 images. I don't want to do a big switch in the source code and display an image depending on the current channel Id. I want to fetch an image by name / tag / caption. In this case I can do a logic to fetch a specific image and use it.
Otherwise I need to
- Upload 100 images
- Note the name of each image (which is always random)
- Map the file name to the channel id
- Implement a logic which will be fetching the image depending on the channel id
- Do the same for all environments (DEV/TEST/UAT)
- Have problems in the future if I need to add more channels or if existing image is deleted --> in this case I need to update the source code every time this happens
Instead I would like to
- Upload 100 images
- Give them correct names or tags or whatever
- Implement logic to fetch correct image by name / tag / caption / whatever else possible
This will allow easy configuration and I don't need to do a deployment in case more channels will come, I will have to just upload a new image instead.