bayzazi Posted November 9, 2023 Share Posted November 9, 2023 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 More sharing options...
Eolia Posted November 9, 2023 Share Posted November 9, 2023 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 More sharing options...
bayzazi Posted November 9, 2023 Author Share Posted November 9, 2023 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 More sharing options...
Eolia Posted November 9, 2023 Share Posted November 9, 2023 Ben si l'install se fait en ajax il faut faire la redirection en js. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now