Install and enable the install from web plugin
Disable all other install plugins
Only install from web tab is displayed for Extensions->install
Message displayed
No installation plugin has been enabled. At least one must be enabled to be able to use the installer. Go to the Plugin Manager to enable the plugins.
Labels |
Added:
?
|
Status | New | ⇒ | Discussion |
Category | ⇒ | com_installer |
yeah i just came to the same conclusion but thought of another option
Instead of trying to count the tabs why not count the number of enabled installer plugins
I don't know what else that plugin group is intended for, but not all of them may be adding tabs.
Labels |
Added:
J3 Issue
|
Correct, I created the the plugin group for the installer plugins because non-existed. The IFW is the odd one out here since it works in a completely different way. We needed a plugin group as you otherwise can't enable/disable specific plugins. In my opinion the IFW should be reworked to use the plugin group as well, so all installation plugins work the same way.
As for the markup, I don't recall what was the issue but we had to do it that way. As far as I am concerned, we clean this up so all installer plugins work the same way.
My vote goes to your option 2.
I'll add it to my calendar, currently I'm booked out through June 2021
:D I have my German university students at the end of July. I can take it on as a project for them. Is that an option?
Everything's an option if there are resources to make it happen. It's honestly not a lot of effort to do the backport and new release, just a lack of time and having to re-prioritize all the things on my part for a while now.
@brianteeman Yes, I just arrived today and we are starting tomorrow with the students.
great stuff - I guessed that might be the case
We have some students working on this now.
I was looking at the J4 code, and I believe we can remove the onInstallerViewBeforeFirstTab
and onInstallerViewAfterLastTab
triggers because ordering is based on the plugin ordering. These triggers were only introduced because IFW was not a normal plugin.
public function onInstallerAddInstallationTab()
{
$tab = array();
$tab['name'] = 'url'; // $tab['name'] = 'web';
$tab['label'] = Text::('PLG_INSTALLER_URLINSTALLER_TEXT'); //$tab['label'] = Text::('PLG_INSTALLER_WEBINSTALLER');
ob_start();
include PluginHelper::getLayoutPath('installer', 'urlinstaller'); //include PluginHelper::getLayoutPath('installer', 'webinstaller');
$tab['content'] = ob_get_clean();
return $tab;
}
}
maybe adding this in webinstaller.php can be help.
or just adding this empty method;
public function onInstallerAddInstallationTab()
{
return ['asd'];
}
@icampus
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-07-25 11:12:51 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_By | joomla-cms-bot | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/20608
This is a major architectural fail.
When using the
onInstallerViewBeforeFirstTab
andonInstallerViewAfterLastTab
events, plugins have to directly echo out the additional markup for the page. The IFW plugin doesn't return anything in these events, and isn't using theonInstallerAddInstallationTab
event in the currently released version, so in this scenario the line that decides to show the error is basically checking a bunch of empty arrays.To trick it into working there are two options: