mistrjirka Posted February 7, 2021 Share Posted February 7, 2021 Hi I have a custom module that has popup with a custom hook in it. When I try hooking for example search bar it displays it perfectly, but when I try to hook faceted search it just displays comment like this (I am refering to image). I have no idea what is going on and why, here is the template <div id="pp_myModal" class="pp_modal"> <!-- Modal content --> <div class="pp_modal-content"> <span class="pp_close">×</span> <p>{hook h='displayPopup'} </p> </div> </div> And here is the registering of hook: public function hookDisplayPopup() { return ""; } I am probably registering it incorectly, but I did not found any other way. I tried this: $hook = new Hook(); $hook->name = 'displayAtSpecificPlace'; $hook->title = 'The name of your hook'; $hook->description = 'This is a custom hook!'; $hook->position = 1; $hook->add(); // return true on success in install method, but it was installing infinitly long. Thank you for your answers popupconfig2.zip 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