I added a ArtistsArtistsModuleFrontController
on my artists
module.
It’s working perfectly but I add to go on the back office, section SEO & URL
and edit module-artists-artists
page to set Titles and URL (for each translations).
This is quite overkill and I would like my module to configure it automatically on installation.
Is this possible? How?
2
Answers
If you doesn’t want to use database method, you can set directly meta title, meta description and meta keywords in your controller by set
$this->context->smarty->tpl_vars['meta_title']->value
For custom url, you must use hookModuleRoutes : http://blog.belvg.com/how-to-generate-a-custom-url-in-prestashop.html