Jump to content

Redirection après installation module


Recommended Posts

Bonjour sur un presta 1.7, y a t'il une possibilité de rediriger vers la page de config après l'installation d'un module ?

J'ai essayé diverses méthodes, dont "actionModuleInstallAfter" qui semblait prometteuse, mais rien ne marche.

Auriez vous une idée ?

Merci !

Link to comment
Share on other sites

c'était natif en 1.6 si le module possédait la fonction getContent()

if($key == 'install' 
                                && $echo === true 
                                && strpos(Tools::getValue('install'), '|') === false 
                                && method_exists($module, 'getContent')
                            ) {
                                Tools::redirectAdmin(
                                    self::$currentIndex.'&token='.$this->token.'&configure='.$module->name.'&conf=12'
                                );
                            }

Ils auraient pété ça aussi ?

Link to comment
Share on other sites

Moui, en tout cas j'en trouve trace nulle part.

Mon module a bien un getContent, mais il conditionne juste l'affiche du bouton "Configurer" sur la card du module.

 

De plus l'install se fait en ajax, donc j'ai du mal à imaginer comment on pourrait rediriger, avec ça ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...