it could be achieved IMVHO with custom fragments
you need to study the templating system that rules SME, make some tests and report here..
in the meanwhile, you should/could open a NFR in bugzilla (please, before creating a new one, search bugzilla to check that the same NFR doesn't exist)
thank you