I would like the template for editing articles to be different from the template for viewing articles. How can this be done?
1 Answer
It's actually possible by overriding it via 3rd party plugin. You can create a simple system plugin calling setTemplate() method when the onAfterRoute event occurs :
public function onAfterRoute() {
$app = JFactory::getApplication();
$view = $app->input->get('view');
if ($view == 'form'){
$app->setTemplate('template_name', null);
}
}
I have created a simple plugin for this purpose. You can download it from the JSE Github.
Update : I have submitted the extension to JED and it's now listed here