alfredopacino Posted February 24, 2014 Share Posted February 24, 2014 (edited) hi, im tring to move the slideshow from the main content to the header, link attached. i want the right column below the slideshow. the exactly position should be in those divs <div id="leo-maincontainer"> <div class="container"> <div class="inner-wrap"> <div class="row-fluid" > ##IM THE SLIDESHOW I WANNA BE HERE## im tring to edit header.tpl with something like {include file="/modules/homeslider/homeslider.tpl"} but i dont know the sintax of those PS script, could you help me? Edited February 24, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 it will not work (method with include) you have to move whole hook (not good idea) or create new one and attach your module to this new hook (proper solution) Link to comment Share on other sites More sharing options...
alfredopacino Posted February 25, 2014 Author Share Posted February 25, 2014 (edited) http://www.prestashop.com/forums/topic/302710-do-i-need-a-new-hook/ this is the pretty same issue, i thought i need a new hook and you said not so how can i create a new hook? i searched a lot but i didnt solve this in 2 months however, i dont know if i try to move the slideshow in displayHeader i get the error message "this module cannot be transplanted to this hook" Edited February 25, 2014 by alfredopacino (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 displayHeader hook option is not a good idea it's a part of shop where you have to include js/css files, not "visibile" content. i thought i need a new hook and you said not where i said that ? create new hook with this guide: http://www.prestashop.com/forums/topic/2182[spam-filter]create-custom-and-new-hook-in-ps-15/ attach your module to this hook (you have to create function inside module php file to support new hook) then in your template file add your hook to place, where you want to display slider Link to comment Share on other sites More sharing options...
alfredopacino Posted February 25, 2014 Author Share Posted February 25, 2014 in your link i see "I strongly recommend you first to use the new method ( $this->registerHook('displayMyNewHook'); )" shouldnt i use that? Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 you can, but the most important is something else function to handle your new hook public function hookdisplayMyNewHook($params){ //function code here } Link to comment Share on other sites More sharing options...
alfredopacino Posted February 26, 2014 Author Share Posted February 26, 2014 ok but if i want to use the 1.5 procedure without editing the db what is the exactly procedure? Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 it's not possible, you have to include new hook to the database, it's necessary, this is how you have to create new hook Link to comment Share on other sites More sharing options...
alfredopacino Posted February 26, 2014 Author Share Posted February 26, 2014 (edited) it's not possible, you have to include new hook to the database, it's necessary, this is how you have to create new hook in the thread you linked i see "..doesn't need to add field to database manually.." i mean that Edited February 26, 2014 by alfredopacino (see edit history) 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