2.50 compatibility

Must test and fix for 2.50. Surely a new version, maybe a complete template (because template can use own views).

Need help for testing