I have my parent and child category set up like below
Gifts > Toys & Games > Toys > Plush
Gifts > Toys & Games > Toys > Marvel
Gifts > Toys & Games > Games > Puzzles
Gifts > Toys & Games > Games > Cards
I have a category custom field called header_image which holds a promo image for that particular category. What I am trying to do access this image on child categories so I can use it as a fall back image in case these categories don't have one.
I have tried using the code below but was only successful up to the first level of child category
If there is a replacement for toolkit function, I am fine with it.
Thanks
Gifts > Toys & Games > Toys > Plush
Gifts > Toys & Games > Toys > Marvel
Gifts > Toys & Games > Games > Puzzles
Gifts > Toys & Games > Games > Cards
I have a category custom field called header_image which holds a promo image for that particular category. What I am trying to do access this image on child categories so I can use it as a fall back image in case these categories don't have one.
I have tried using the code below but was only successful up to the first level of child category
Code:
<mvt:item name="toolkit" param="childof|parentfound|g.Category_Code" /> <mvt:if expr="g.parentfound"> <mvt:item name="toolkit" param="customcategoryc|catheadimg|l.all_settings: childof:code|header_image" /> #cgty_header_image{background-image:url('&mvt:global:basehref;&mvte:global:catheadimg;');background-repeat:no-repeat} </mvt:if>
Thanks
Comment