image - How to get position value from a model (catalog/product_image) in Magento? -


i have magento model (catalog/product_image). there way me position value or label value of image. when var dump model, can width, height, quality, _keepaspectratio, etc. valuable data can image file name this: /s/e/productabc.png

im not quite sure if more useful catalog/product_image model. question sounds wanting fetch image label. if have access product object can use:

$_product->getmediagalleryimages()->getitembycolumnvalue('label', 'label_name')->geturl(); 

this return label of image.

if need more please share objects have access , trying achieve.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -