danwarrior Posted January 8, 2019 Posted January 8, 2019 Hi, guys! I want to move the Faceted search module to the main column but positions are limited when I try to configure the new position. Do you know wich change I need to do (I think is via code) to insert in the main center column or another hook of my theme? Thank you very much!
0 lesley Posted January 8, 2019 Posted January 8, 2019 I haven't tried this, but you might add this to the module php file and then hook it to the displayTopColumn public function hookTopColumn($params) { return $this->hookLeftColumn($params); } By module php file I mean blocklayered.php
0 danwarrior Posted January 10, 2019 Author Posted January 10, 2019 @lesley Thanks, Lesley! I've done it but there is not showing yet from Module Positions: Maybe I need to change something more?
0 lesley Posted January 10, 2019 Posted January 10, 2019 Did you transplant the module to the hook? You have to do that as well.
0 danwarrior Posted January 10, 2019 Author Posted January 10, 2019 @lesley I can't, the hook is not on the list...
0 lesley Posted January 10, 2019 Posted January 10, 2019 On the transplant list? Or the list of hooks on the positions page?
0 danwarrior Posted January 10, 2019 Author Posted January 10, 2019 @lesley I'm not sure if I'm understanding what you mean... I've already show the screenshot: I've add that code, upload to the FTP and then, when I try to add the module to the new hook (from "positions" menu option), Display TopColumn is not showing. Is there any step more?
0 colorful-ant Posted January 10, 2019 Posted January 10, 2019 i think, if you have changed the php-file - reset module for new settings (new install) - after reset you can see and change it
0 lesley Posted January 10, 2019 Posted January 10, 2019 I am not seeing the screen shot. Once you make the code change, you need to hook it though, https://i.imgur.com/Q9KBWBu.png
0 danwarrior Posted January 10, 2019 Author Posted January 10, 2019 @lesley Mmm, that's what I'm doing. I've reseted too but nothing: https://elplandedan.com/wp-content/uploads/2019/01/Screenshot-2019-01-10-at-22.30.02.png
0 danwarrior Posted January 10, 2019 Author Posted January 10, 2019 @lesley It only shows that "Display TopColumn" isn't in the list of transplant module (after I've added that code) :)
0 Chandra Posted January 11, 2019 Posted January 11, 2019 @lesley said in Change the hook for faceted search module: I haven't tried this, but you might add this to the module php file and then hook it to the displayTopColumn public function hookTopColumn($params) { return $this->hookLeftColumn($params); } By module php file I mean blocklayered.php Just to confirm, should hookLeftColumn in the code be hookTopColumn?
0 lesley Posted January 11, 2019 Posted January 11, 2019 Yeah, there is no issue doing that. Most modules do that. I just tested it, I got the hook wrong use, public function hookdisplayTopColumn($params) { return $this->hookLeftColumn($params); } And then unhook it from the left column, and hook it to the top column. It will look like this, http://thirtybees-200675-702960.cloudwaysapps.com/coffee-and-tea and need to be restyled for being in the top column.
0 danwarrior Posted January 11, 2019 Author Posted January 11, 2019 @lesley Yeah, that looks great! I'm going to try and tell you :D
0 danwarrior Posted January 11, 2019 Author Posted January 11, 2019 @lesley It worked perfectly, I've put it even on a special hook from the Panda Theme (displayCategoryHeader). I'm trying to adjust custom CSS, it will looks awesome :D Thank you so much, Lesley!
Question
danwarrior
Hi, guys!
I want to move the Faceted search module to the main column but positions are limited when I try to configure the new position.
Do you know wich change I need to do (I think is via code) to insert in the main center column or another hook of my theme?
Thank you very much!
16 answers to this question
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