Not sure if this is the right sub-form. Feel free to move if incorrect.
I will try to describe the problem here:
I have made a Magento (2.2 currently) plugin. The plugins goal is to replace the image of the product with a canvas (on the product detail page).
Currently the plugin works great, canvas shows up and all. Except there is one issue: this happens for all the products in the store.
Is it possible to switch layouts based on product? I have a custom EAV which adds the URL to the product based on this URL the canvas is loaded with content. When the URL is not filled it should load the default (normal images)