Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="its-category-slideshow">
- <ss:foreach item="category" within="$catalog.categoryList()">
- <ss:set name="categorySlideshowPhoto" value="$string.concat('slideshow_', $string.concat( $string.replace( $string.toLowerCase($string.replace($category.parentChainDisplay, ':', '_')), '[^a-zA-Z0-9\_]', ''), '.jpg'))"/>
- <ss:if test="$store.images.getItem($categorySlideshowPhoto).exists()">
- <ss:set name="categoryLink" value="/"/>
- <ss:foreach item="item" within="$category.parentCollection()">
- <ss:set name="clean" value="$string.replace($string.toLowerCase($item.name), ' ', '-')"/>
- <ss:set name="categoryLink" value="$system.concat($categoryLink, $system.concat($clean, '/'))"/>
- </ss:foreach>
- <div><ss:link source="$categoryLink"><ss:image source="$store.images.getItem($categorySlideshowPhoto)" alt="$category.name"/></ss:link></div>
- </ss:if>
- </ss:foreach>
- </div>
Add Comment
Please, Sign In to add comment