Create a site using the beez template
Create an article and add it to a menu item and use the protostar template for that menu item
In the front end login and edit the article
Select the insert image from the wysiwyg toolbar to open the image select modal
The modal opens in an iframe and is using the assigned protostar template
The modal opens in an iframe and is using the default template for the site - in this case beez
did a quick test on an old site and it looks like it might always have been this way
Then, we can simply add tmpl=' . JFactory::getApplication()->getTemplate() . '
in the url
... everywhere the modal gets loaded - I just gave one example
here is a solution:
/Users/dimitris/Documents/github_projects/joomla1/plugins/editors-xtd/image/image.php
after line 40
$template = $app->getTemplate();
and line 55
$link = 'index.php?option=com_media&view=images&tmpl=component&e_name=' . $name . '&asset='
. $asset . '&author=' . $author . '&template=' . $template;
/Users/dimitris/Documents/github_projects/joomla1/administrator/components/com_media/controller.php
replace after line 32 and before `switch($vName)
$app = JFactory::getApplication();
$vType = JFactory::getDocument()->getType();
$vName = $this->input->get('view', 'media', 'string');
if ($app->isSite())
{
$template = $this->input->get('template', 'protostar', 'string');
$app->setTemplate($template);
}
This will work only for front end as setTemplate()
is only available there!
Can you submit it as a pr please
Closed as we have a PR
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-09-07 13:40:19 |
Closed_By | ⇒ | brianteeman |
The url is not specifying any template:
https://github.com/joomla/joomla-cms/blob/staging/plugins/editors/tinymce/tinymce.php#L737-L740
Was this working before (3.6)? Reverting #11826 has any effect?