I am struggling to find a way to have an image object appear in the schema markup for a views page. Ideally I would set this through the MetaTag module but am open to doing it programatically.

The view is set up to display fields - one of which is an image. I'd like to be able to grab the first (or arbitrary) image in the views list and set this as the page schema image. Can't seem to find an appropriate token in the Mettag UI, and I've tried a few.

Whilst this is for D7, I'd guess D8 solutions may also work.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.