You might be able to carry the template parameter into the add.cgi/modify.cgi script. I believe Alex has addressed using multiple templates in the dynamic mode a few times in this forum and other Links SQL forums.
Regards,
Eliot Lee
Regards,
Eliot Lee