noodly90210 Posted July 9, 2014 Share Posted July 9, 2014 I am new in prestashop. Please help me. I want to create menu with links in my .tpl file. It's in mymodule/views/templates/front/ Something like this: <li><a href="hello1.php">Red</a></li> <li><a href="hello2.php">Blue</a></li> <li><a href="hello3.php">Green</a></li> But I don't now where I have to put this files (hello1.php, hello2.php, hello3.php). And how to do it right. Thank You. Because I can't find it in documentation( Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2014 Share Posted July 9, 2014 hello dont use simple .php files instead of them create module front office controllers then you will be able to use $link object to create links to controllers (part of module) Link to comment Share on other sites More sharing options...
noodly90210 Posted July 11, 2014 Author Share Posted July 11, 2014 Thank you! But how about image? Image in my module are in /img folder. How to add to .tpl file url to them? Link to comment Share on other sites More sharing options...
vekia Posted July 11, 2014 Share Posted July 11, 2014 you can use this: <img src="{$content_dir}modules/YOURMODULE/img/image.jpg" /> of course replace YOURMODULE with your module directory and image.jpg with image you want to display 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