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

{Notification}

{CreationNotPossible}
#REM #ENDREM
#ELSE #BLOCK("WITH_FORM_ERROR",#FormError)
#IF(#INPUT.PageSize) #ENDIF#IF(#INPUT.OrderBy) #ENDIF#IF(#INPUT.OrderDesc) #ENDIF #IF(#FormError)#LOCAL("UnknownError", 0) #IF(NOT #FormErrors.Reason.NAME_NOT_VALID)
#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
#REM #ENDREM #ENDIF #ENDLOCAL #ENDIF #IF(#DELETE)

{AcceptAction}

{AcceptActionInfo}

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

{Notification}

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

{Notification}

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

{Notification}

{MaxFeatureValueReached}
{FeatureMaxValue}: #Shop.FeatureMaxValue.Pages #INCLUDE("FeaturePromotion")
#REM #ENDREM #ENDIF #ENDIF #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #REM #ENDREM #REM #ENDREM #IF(#FormError_Alias OR #FormError_Visiblity) #ENDIF #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
{Name} {Position}{Name}{Name}{Name}{Position}{Position}{Position}{Name} {Position}
#IF(NOT #DELETE)#INCLUDE("Pager")#ENDIF
#NameOrAlias #LOCAL("IsNotVisibleStatus",1) #IF(#IsVisible) #SET("IsNotVisibleStatus",0) #ENDIF #SNIPPET("INC-Status", "IsNotVisible",#IsNotVisibleStatus) #ENDLOCAL #Position
#IF(#DELETE)
#ELSE
#ENDIF
#ENDBLOCK #ENDIF
#MENU("SNIPPET-CategoryChildObjects-Script") #INCLUDE(#Template) #ENDMENU