Get ID on template