prcwest Posted July 24, 2016 Share Posted July 24, 2016 Hello i created a custom page (not cms) what i be able to call for example: prestashop.com/technical-page.is it possible to add this page to "appearance of columns" in Themes > Edit: default-bootstrap > Theme to display columns left or right? best regards Link to comment Share on other sites More sharing options...
rocky Posted July 25, 2016 Share Posted July 25, 2016 I was just working on this same issue yesterday. I ended up adding the following to the install() function of my module: $meta = new Meta(); $meta->page = 'module-gallerync-gallery'; $meta->add(); $meta = new Meta(); $meta->page = 'module-gallerync-image'; $meta->add(); and this to the uninstall() function of my module: Db::getInstance()->Execute( 'DELETE FROM `'._DB_PREFIX_.'meta` WHERE `page` = "module-gallerync-gallery" OR `page` = "module-gallerync-image"' ); This added "module-gallerync-gallery" and "module-gallerync-image" to the list of layouts. Change these values with the folder name of your module and the controller name. 1 Link to comment Share on other sites More sharing options...
prcwest Posted July 30, 2016 Author Share Posted July 30, 2016 Hello and thank you very much reply. Im sorry for the late response but i was working away. As i have just a simple own created page and not a complete module i really don't know exactly where to putt this code.As i explained before i want my page to show up in Themes > Edit: default-bootstrap > Theme display columns left or right. if you would have a better explanation for me would be grateful appreciated best regards I was just working on this same issue yesterday. I ended up adding the following to the install() function of my module: $meta = new Meta(); $meta->page = 'module-gallerync-gallery'; $meta->add(); $meta = new Meta(); $meta->page = 'module-gallerync-image'; $meta->add(); and this to the uninstall() function of my module: Db::getInstance()->Execute( 'DELETE FROM `'._DB_PREFIX_.'meta` WHERE `page` = "module-gallerync-gallery" OR `page` = "module-gallerync-image"' ); This added "module-gallerync-gallery" and "module-gallerync-image" to the list of layouts. Change these values with the folder name of your module and the controller name. Link to comment Share on other sites More sharing options...
rocky Posted July 30, 2016 Share Posted July 30, 2016 Have you tried going to Preferences > SEO & URLs, clicking the "Add a new page" button, then looking for your controller in the "Page" dropdown? If it's there, you can add the page there. If not, you can try manually adding it to the ps_meta and ps_meta_lang tables. If that doesn't work, then I guess you'll have to write a module around your controller. 1 Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 30, 2016 Share Posted July 30, 2016 Please read this article: http://build.prestashop.com/howtos/module/Common-mistakes-while-coding-module/ Controller registration section... 1 Link to comment Share on other sites More sharing options...
rocky Posted July 31, 2016 Share Posted July 31, 2016 Thanks, Krystian. I learned something new. Link to comment Share on other sites More sharing options...
prcwest Posted July 31, 2016 Author Share Posted July 31, 2016 Thanks both of you! i got it working. now i just need to get my page showing up in breadcrumbs thanks again Link to comment Share on other sites More sharing options...
rocky Posted August 1, 2016 Share Posted August 1, 2016 I'm wanting to know the same for my module, so let me know if you find a solution before I do. Link to comment Share on other sites More sharing options...
Krystian Podemski Posted August 1, 2016 Share Posted August 1, 2016 Just use this code: {capture name=path} here's your breadcrumbs {/capture} Link to comment Share on other sites More sharing options...
rocky Posted August 1, 2016 Share Posted August 1, 2016 Thanks again. I'll try this. Link to comment Share on other sites More sharing options...
prcwest Posted August 1, 2016 Author Share Posted August 1, 2016 (edited) Just use this code: {capture name=path} here's your breadcrumbs {/capture} Krystian Awesome i will try this too. Thank you! now i ran in another problem. I created the non cms page https://www.eastcoastpuncturesafe.com/unit-calculator. since i have this page running, I have on the index page 4 products in a row with slider left but there should be only 3. any help with this would be appreciated. Edited August 1, 2016 by prcwest (see edit history) Link to comment Share on other sites More sharing options...
qiqiy_888 Posted February 15, 2017 Share Posted February 15, 2017 Have you tried going to Preferences > SEO & URLs, clicking the "Add a new page" button, then looking for your controller in the "Page" dropdown? If it's there, you can add the page there. If not, you can try manually adding it to the ps_meta and ps_meta_lang tables. If that doesn't work, then I guess you'll have to write a module around your controller This method works well. Thank you sooo much Rocky. 1 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