#set( $rootpath = "${apphome}/components/categorize")
#set ($detailid = $context.getRequestParameter("detailid") )
#if( $detail )
#set( $detailid = $detail.id)
#end
#set ($existing = $context.getRequestParameter("${detailid}.value") )
#if(!$existing)
#set ($existing = $val)
#end
#if(!$existing)
#set ($existing = $values)
#end
#if(!$existing)
#set ($existing = $context.getRequestParameter("${detailid}.values") )
#end
#if(!$existing)
#set ($existing = $context.getRequestParameter("nodeID") )
#end
#if( $existing && !$existing.trim().isEmpty() )
#set ($existing = $existing.replace("||","|"))
#foreach($categoryid in $existing.split("\s*\|\s*"))
#set($category = $mediaarchive.getCategory($categoryid))
#if($category)
#set( $iscollection = $categoryCollectionCache.isPartOfCollection($category))
#foreach( $parent in $category.getParentCategoriesFrom(1))
#if( ${foreach.count} > 1) \ #end
$parent
#end
#end
#end
#end
##Bug Ajax forms dont validate hidden fields ever. So make it 1px wide
[[Pick Categories]]