shallwebr Posted March 9, 2016 Share Posted March 9, 2016 Hi guys, I'm trying change some codes in a copy of default theme, prestashop 1.6.I know something about Smarty, but theres a line: <div class="nav"> <div class="container"> <div class="row"> <nav>{$smarty.capture.displayNav}</nav> </div> </div> </div> I want to know where is the file "Nav"? <nav>{$smarty.capture.displayNav}</nav> I think this Smarty.capture is like "include file php", in php is easy, just look for the name of file, but here, i cant find it. Thanks guys Link to comment Share on other sites More sharing options...
polosat Posted March 9, 2016 Share Posted March 9, 2016 "Nav" is not a file. {$smarty.capture.displayNav} is a variable, that was assigned a few lines before: {capture name='displayNav'}{hook h='displayNav'}{/capture} Smarty {capture} is used to collect the output of the template between the tags into a variable instead of displaying it. Take a look at this page: http://www.smarty.net/docs/en/language.function.capture.tpl 1 Link to comment Share on other sites More sharing options...
shallwebr Posted March 10, 2016 Author Share Posted March 10, 2016 "Nav" is not a file. {$smarty.capture.displayNav} is a variable, that was assigned a few lines before: {capture name='displayNav'}{hook h='displayNav'}{/capture} Smarty {capture} is used to collect the output of the template between the tags into a variable instead of displaying it. Take a look at this page: http://www.smarty.net/docs/en/language.function.capture.tpl Thank you, and theres a tutorial or something for change or create a new theme? I cant find nothing about the coluns, names or files etc. The good is the structure of site Link to comment Share on other sites More sharing options...
polosat Posted March 10, 2016 Share Posted March 10, 2016 Take a look at this one: http://doc.prestashop.com/display/PS16/Theme+development+fundamentalsAlso there are a lot of other helpful articles on doc.prestashop.com 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