The method of empire cms to get the parent column id and parent column name of the current column id:
<?php
if($class_r[$GLOBALS[navclassid]][bclassid]==0){
$classid=$GLOBALS['navclassid'];
$classname=$class_r[$classid][classname];
}else{
$classid=$class_r[$GLOBALS[navclassid]][bclassid];
$classname=$class_r[$classid][classname];
}
?>Insert the above code into the template
If the parent column id of the current column is 0, directly obtain the current column id $GLOBALS['navclassid'];