#LOCAL("MaxBreadcrumbs", 3)#LOCAL("PathLength", #COUNT(#MainCategory.PathFromSite)) #LOCAL("StartIndex", 0) #IF(#PathLength > #MaxBreadcrumbs) {AllProducts} #SET("StartIndex", #PathLength-#MaxBreadcrumbs) #ENDIF #LOOP(#MainCategory.PathFromSite, #StartIndex, #LastIndex) #IF(#NavigationCaption)#NavigationCaption[slice:50,html]#ELSE#NameOrAlias[slice:50,html]#ENDIF #ENDLOOP #ENDLOCAL
    #IF(#Shop.Categories.Child.SpecialOffers.ID == #MainCategory.ID)
  • {SpecialOffers}
  • #ELSE #LOOP(#MainCategory.PathFromSite, #StartIndex, #PathLength - 1)
  • #IF(#NavigationCaption)#NavigationCaption[slice:50,html]#ELSE#NameOrAlias[slice:50,html]#ENDIF
  • #ENDLOOP #ENDIF #ENDLOCAL#ENDLOCAL