Reply to thread

ATM it's not possible to redirect the admin to a page after the add-on installation ( deinstallation).

The Script redirects him automatic to the add-ons page

[php]

/**

* Installs a new add-on. This cannot be used for upgrading.

*

* @return XenForo_ControllerResponse_Abstract

*/

public function actionInstall()

{

....

return XenForo_CacheRebuilder_Abstract::getRebuilderResponse($this, $caches, XenForo_Link::buildAdminLink('add-ons'));[/php]

 

It would be cool, if we could define own pages/links here.

For example:

After my gallery intallation, i'd like to redirect the user automatic to the gallery settings page

 

Or another scenario:

Redirect the user to a form before the addon deinstallation, so he can confirm, if he wants to delete the data or leave them in the database...


Back
Top Bottom