{ProductSearch}
#LOCAL("ExternalSearchContent","") #REM Check if menu "ProductSearchBox" has any templates, compile them and if there's something to show, print the content of the menu templates, else print default #ENDREM #MENU("ProductSearchBox") #SET( "ExternalSearchContent", #ExternalSearchContent."".#INCLUDE(#Template) ) #ENDMENU #IF(#IsEmpty(#ExternalSearchContent))
#WITH_ERROR(#FormError) #ENDWITH_ERROR
#IF(#Shop.FeatureMaxValue.DetailedSearch)
{DetailedSearch}
#ENDIF
#ELSE #ExternalSearchContent[0] #ENDIF #ENDLOCAL