I think I figured it out! At least I hope so, initial testing looks good though. Full code is as follows:
[code]
/******************************************************************************
** Section <<<$template_cat_list>>> - START
*************...
[code]
/******************************************************************************
** Section <<<$template_cat_list>>> - START
*************...