I have been working hard for the past few months on our template framework update. For now everything seems well but I would like to hear from experienced Joomla devs if they see any issues with this.
From the beginning I wanted to have my own blank / empty template admin page to do what I like in there.
No extra admin template js/css , no html/js overload. Just my own page to present the template admin form
in the best way possible. A form that looks same in any Joomla version.
This is what I came up with
In order to achieve that I had to override the JDocumentHtml , ( THANK YOU to Donald Gilbert for great info )
This plugin helped explain the process http://extensions.joomla.org/extensions/style-a-design/templating/15611 but I did not like the eval use so I came up with my own version where in fact I read the original JDocumentHtml make new file inside plugin folder with its contents, replace strings , name the file than call it in plugin construct.
than I call the _fetchTemplate method extend file, which basically redirects the look for admin template index.php , to look inside the plugin folder for index.php
All this works well . I made sure that if user is updating Joomla , the old copied class names are deleted , and when he goes inside admin again they are recreated with new JDocumentHtml class content. This way I make sure that we dont miss any changes or updates.
So if you had time to go trough this , please do give some info so that I can make sure that we did not miss anything.
Thank you!