#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
#SNIPPET("INC-PagerHeader", "ContextObjects", "{Categories}")
#IF(NOT #DELETE)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions")
#REM #ENDREM
#REM #ENDREM
#IF(#FormError_Alias OR #FormError_Visiblity)
#ENDIF
#ENDIF
#IF(NOT #DELETE)
#SNIPPET("Pager", "ContextObjects", "{Categories}")
#ENDIF
#IF(#DELETE)
#ELSIF(#COUNT(#Pager.Items))
#ENDIF
#ENDBLOCK
#ENDIF