dbrondy Posted November 12, 2013 Share Posted November 12, 2013 (edited) Hello all, I'm developing a module which use the nice hook hookModuleRoutes(). I initially started the development on PS 1.5.4.1 and everything is working fine with regards to hookModuleRoutes.As required by the core, my module returns an array with two entries indexed with following naming convention: return array('module-tplmcompat-results' => array( 'controller' => 'results', 'rule' => 'module{/:module}{/:controller}{/:toto}', 'keywords' => array( 'module' => array('regexp' => '[\w]+', 'param' => 'module'), 'controller' => array('regexp' => '[\w]+', 'param' => 'controller') 'toto' => array('regexp' => '[\w]+', 'param' => 'toto') ), 'params' => array( 'fc' => 'module', 'module' => 'tplmcompat', 'controller' => 'results' ) )); In 1.5.4.1, the rewritten url is good and works perfectly. I.e. toto value is correctly encoded in the url:site store url ......../module/tplmcompat/results/totovalue However, since 1.5.5.0 and also in 1.5.6.0, once installed, all front pages are broken until I had to change:return array('module-tplmcompat-results' => array(byreturn array('tplmcompat-results' => array( # remove "module-" keyword After this patch, the module works however, impossible to have the good rewritten url. I definitively have:site store ...../module/tplmcompat/results?toto=totovalue I didn't see lot of post concerning hookModuleRoutes()... I also saw changes on the Dispatcher and Link classes in 1.5.5.0 and 1.5.6.0 Somebody can help me ? What could be wring here ?Tksdenis Edited November 12, 2013 by dbrondy (see edit history) Link to comment Share on other sites More sharing options...
dbrondy Posted November 13, 2013 Author Share Posted November 13, 2013 Little up ... Nobody works with this feature ? Link to comment Share on other sites More sharing options...
dbrondy Posted November 14, 2013 Author Share Posted November 14, 2013 Up...please ? Link to comment Share on other sites More sharing options...
Mahdi Shad Posted April 28, 2014 Share Posted April 28, 2014 Hi how you create links for your pages ? Link to comment Share on other sites More sharing options...
Denis Gerasimov Posted July 7, 2014 Share Posted July 7, 2014 Hello, same problem here. Maybe my answer could help you. http://www.prestashop.com/forums/topic/342413-module-routes/ 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