I created a new atribute category image in Magento backend with a tutorial: tutorial link
Now I want to return the full url to a template file. This template comes from another module I created to show menu in home page. Above is the template:
<?php $ categories = $ this->getStoreCategories(true,false,true); $ categoryHelper = $ this->getCategoryHelper(); ?> <nav class="navigation"> <ul> <li><a href="#"><?php echo __('The Brand') ?></a></li> <?php foreach($ categories as $ category): if (!$ category->getIsActive()) { continue; } ?> <li><a href="<?php echo $ categoryHelper->getCategoryUrl($ category) ?>"><?php echo $ category->getName() ?></a> <?php if($ childrenCategories = $ this->getChildCategories($ category)): ?> <div class="submenu-wrapper"> <div class="submenu-holder"> <div class="list-holder"> <div class="col1 col"> <span class="menu-label">Categorias</span> <ul class="category-list"> <?php foreach($ childrenCategories as $ childrenCategory): if (!$ childrenCategory->getIsActive()) { continue; } ?> <li><a href="<?php echo $ categoryHelper->getCategoryUrl($ childrenCategory) ?>"><?php echo $ childrenCategory->getName() ?></a></li> <?php endforeach; ?> </ul> </div> <div class="col2 col"> <span class="menu-label">Numeração</span> <ul class="numeracao-list"> <li><a href="#">33</a></li> <li><a href="#">34</a></li> <li><a href="#">35</a></li> <li><a href="#">36</a></li> <li><a href="#">37</a></li> <li><a href="#">38</a></li> </ul> </div> <div class="col3 col"> <span>aqui:</span> <span> <img src="{{I want to show additional image category url here}}" alt=""> </div> </div> </div> </div> </li> <?php endif; endforeach; ?> </ul>
How can I show the additional category image?