output tms custom tag code