#NameOrAlias #LOCAL("ViewProductsAvailable", #FeaturedActionAvailable(#Shop.Object, "MBO-ViewProducts", "Products")) #LOCAL("ViewChildObjectsAvailable", #FeaturedActionAvailable(#Shop.Object, "MBO-ViewChildObjects", "Subcategories")) #IF(#ViewProductsAvailable EQ "NotAssigned" OR #ViewProductsAvailable EQ "Allowed") #ENDIF #IF(#ViewChildObjectsAvailable EQ "NotAssigned" OR #ViewChildObjectsAvailable EQ "Allowed" AND #COUNT(#CONTENT_CHILD_CLASSES(#Shop.Object,#Class.Object,#Object))) #ENDIF #ENDLOCAL #ENDLOCAL #Class.NameOrAlias #IF(#IsVisible) #IF(#VisibleInNavigation) #ELSE #ENDIF #ENDIF #IF(#ReadPermissionFor NE #System.Child.Groups.Child.Everyone.ID) #ENDIF #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK