I'd like to share some thoughts about things that seems to be missing from docs, but explaining them would make developing modules (and maybe other things) so much easier:
I coulnd't find any direct mention on how to use images that are placed in module's view/img directory, the closest thing would be https://devdocs.prestashop.com/1.7/themes/getting-started/asset-management/, image files are mentioned, but I couldn't find any further explanation.
At this point, I figured it out I could use src="/modules/my-module/views/img/my-image.jpeg", but how can I know this is the right way?
Another thing I couldn't find was an explanation on how to leverage twig template inheritance/inclusion, it would be great if docs had an example of twig template inheritance and/or inclusion, lets say I have views/templates/admin/base.html.twig template and would like to extend it, how do I do that?
Hello,
I'd like to share some thoughts about things that seems to be missing from docs, but explaining them would make developing modules (and maybe other things) so much easier:
src="/modules/my-module/views/img/my-image.jpeg"
, but how can I know this is the right way?Another thing I couldn't find was an explanation on how to leverage twig template inheritance/inclusion, it would be great if docs had an example of twig template inheritance and/or inclusion, lets say I have views/templates/admin/base.html.twig template and would like to extend it, how do I do that?Regards