I've isolated a bit of Magento code which accesses a template file catalog\product\view\media.phtml
:
<?php echo $this->getImagesMedia(); ?>
How is this different than the below example which does the same thing:
<?php echo $this->getChildHtml('media') ?>
The second example makes sense to me because it's defined in the layout.xml.. The first example is easier to implement on a catalog page where you have multiple objects but where is the $this->getImagesMedia()
defined or setup?
How would I create a $this->getImagesMediaMobile()
.. that's my goal.. to have a 2nd way to display images on mobile devices.
<?php echo $this->getImagesMedia(); ?>
? I wasn't able to find it anywhere.