Advertising via banners can only be effective if you target the specific group of visitors actually interested in viewing further websites about the advertised topic. (You absolutely do not want to advertise barbeques or stoves to a customer who is specifically interested in viewing your range of shoes.) This recipe allows you to define a category-driven banner system, which checks your banner repository according to the following steps:
1. Check for a banner defined for the current category
2. Check for a banner one category level up if a
products_id
is part of the URL3. Check for a banner for the current category if
cPath
is part of the URL4. Use a default banner if no banner was found in steps 1-3