#IF(#TooManyLevelsOfCategories AND #INPUT.ChangeAction NE "MoveTo")

{Notification}

{CreationNotPossible}
#ELSE #BLOCK("WITH_FORM_ERROR",#FormError)
#IF(#INPUT.PageSize) #ENDIF#IF(#INPUT.OrderBy) #ENDIF#IF(#INPUT.OrderDesc) #ENDIF #IF(#FormError)#LOCAL("UnknownError", 0)
#IF(#COUNT(#FormErrors.Form.ListedObjects.Errors))

{Notification}

#LOOP(#FormErrors.Form.ListedObjects.Errors) #IF(#Reason EQ "CantCloneContentObject")

{CantCloneContentObject} #ContentObject.NameOrAlias

#ELSE #Reason #ENDIF #ENDLOOP #ELSE #IF(#TooManyLevelsOfCategories)

{MovingNotPossible}

{MaximumLevelOfCategories}
{CategoriesExceedNestingLimit}
    #LOOP(#FormErrors.Errors)
  • #Name
  • #ENDLOOP
#ELSE

{InputError}

#LOCAL("Object_Exists",0) #LOOP(#FormErrors.Errors) #IF(#Reason EQ "CloneUniqueObject"){CloneUniqueObject} #ELSIF(#Reason EQ "OBJECT_EXISTS" AND #Object_Exists NEQ 0)#SET("Object_Exists",1){DoubleObject} #ELSIF(#Reason EQ "FeatureLimitExceeded"){FeatureLimitExceeded} #ELSE#SET("UnknownError", 1) #ENDIF #ENDLOOP #ENDLOCAL #ENDIF #IF(#UnknownError){PleaseCorrectErrors}#ENDIF #ENDIF
#ENDLOCAL#ENDIF #IF(#DELETE)

{AcceptAction}

{AcceptActionInfo}


#LOOP(#DeleteObjects) #ENDLOOP #ELSE #IF(#FeatureMaxValueReached AND #FeatureMaxValueReached.Feature EQ "Subcategories")

{Notification}

{FeatureNotAvailable}
#INCLUDE("FeaturePromotion")
#ELSIF(#FeatureMaxValueReached)

{Notification}

{CouldNotCreateObject}
{FeatureMaxValue}: #FeatureMaxValueReached.MaxValue #INCLUDE("FeaturePromotion")
#ELSIF(#Shop.FeatureCurrentValue.Pages NGE #Shop.FeatureMaxValue.Pages)

{Notification}

{MaxFeatureValueReached}
{FeatureMaxValue}: #Shop.FeatureMaxValue.Pages #INCLUDE("FeaturePromotion")
#ENDIF #ENDIF #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #ENDIF #IF(#COUNT(#Pager.Items)) #IF(#DELETE) #ELSE #LOCAL("OrderBy",#INPUT.OrderBy)#IF(NOT #DEFINED(#OrderBy))#SET("OrderBy","")#ENDIF #IF(#OrderBy NE "Name") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#OrderBy NE "Position") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDLOCAL #ENDIF #ELSE #ENDIF #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #LOOP(#Pager.Items) #IF(#Class.Alias EQ "Category") #INCLUDE("CategoryContentLine") #ENDIF #ENDLOOP #ENDIF #IF(NOT #DELETE) #LOOP(#Shop.Languages) #IF(#INPUT.Language EQ #Code2) #ENDIF #ENDLOOP #LOCAL("ErrorClassID",#ClassID) #ENDLOCAL #ENDIF
{Name} {Status} {Position}{Name}{Name}{Name}{Status}{Position}{Position}{Position}{Name} {Status} {Position}
#IF(NOT #DELETE)#INCLUDE("Pager")#ENDIF
#NameOrAlias #IF(#IsVisible) #IF(#VisibleInNavigation) #ELSE #ENDIF #ENDIF #IF(#ReadPermissionFor NE #System.Child.Groups.Child.Everyone.ID) #ENDIF #Position
#LOCAL("CategoryClass", #System.Child.Classes.Child.Category.ID) #ENDLOCAL
#IF(#DELETE)
#ELSE
#ENDIF
#ENDBLOCK #ENDIF
#MENU("SNIPPET-CategoryChildObjects-Script") #INCLUDE(#Template) #ENDMENU