Timeline for Magento2 How to get category custom image attribute on frontend phtml page
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 24, 2019 at 4:33 | vote | accept | Shomita | ||
Jun 21, 2019 at 13:04 | comment | added | Magento_Bhurio | I update my code please check....... | |
Jun 21, 2019 at 13:01 | history | edited | Magento_Bhurio | CC BY-SA 4.0 |
Edit code.........
|
Jun 21, 2019 at 13:00 | comment | added | Shomita | Please update your comment | |
Jun 21, 2019 at 12:59 | comment | added | Shomita | I get url like this--------$mediaUrl = $storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA); <img class="img-fluid mx-auto" src="<?php echo $mediaUrl.'catalog/category/'.$homeimg; ?>" alt="<?php echo $category->getName(); ?>"> | |
Jun 21, 2019 at 12:44 | comment | added | Magento_Bhurio | See my code i added href for category url.. | |
Jun 21, 2019 at 12:43 | history | edited | Magento_Bhurio | CC BY-SA 4.0 |
Edit errro code
|
Jun 21, 2019 at 12:41 | comment | added | Shomita | @Bhurio I am getting only image name. How to get catalog base url? | |
Jun 21, 2019 at 10:58 | history | answered | Magento_Bhurio | CC BY-SA 4.0 |