chrispin2 Posted October 1, 2013 Share Posted October 1, 2013 (edited) Hi All, I had hooked my contentbox to my displayTop and when i use my newly installed presta blog module, i am unable to stop displaying the hook when i visit http://thedesignerportfolio.com/test/index.php?fc=module&module=psblog&controller=posts . Thanks in advance! NOTE: The content box contains the LOGIN WITH FACEBOOK PORTION. Edited October 1, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 hello have you tried to clear cache in your store? it sounds like issue with cache Link to comment Share on other sites More sharing options...
chrispin2 Posted October 1, 2013 Author Share Posted October 1, 2013 i have cleared and forced recompilation. I believe it might be because there is no exception check. but i have no idea to implement a workaround Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 so your module is still attached to the hook, but you want to create exception only, right? Link to comment Share on other sites More sharing options...
chrispin2 Posted October 1, 2013 Author Share Posted October 1, 2013 (edited) Yea, the ContentBox Module is attached to the DiaplyTop hook. As the Presta Blog Module ( http://addons.prestashop.com/en/content-management/2500-blog-prestablog-posts-categories-comments-products.html ) is not an option when i am transplating the hook. I think i might need to implement an exception Edited October 1, 2013 by chrispin2 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 if i were you will add exception to the .tpl file manually add there something like: {if $smarty.get.module!='psblog'} CONTENTS OF FILE HERE {/if} 1 Link to comment Share on other sites More sharing options...
chrispin2 Posted October 1, 2013 Author Share Posted October 1, 2013 WOW brilliant Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 it works? im asking because I did not try this Link to comment Share on other sites More sharing options...
chrispin2 Posted October 1, 2013 Author Share Posted October 1, 2013 for others solved by changing contentbox module .tpl file to <!-- contentBox module : loginbox --> {if $smarty.get.module!='psblog'} <div id="loginboxtop" class="loginboxtop"> {$content} </div> {/if} <!-- /contentBox module --> Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 thank you for confirmation im going to mark this thread as [solved] with regards, milos Link to comment Share on other sites More sharing options...
chrispin2 Posted October 1, 2013 Author Share Posted October 1, 2013 (edited) on a side note how can we find out what name the module goes by (for example this blog modules is psblog)? do i use the folder name of the modules Edited October 1, 2013 by chrispin2 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 it's related to the folder name usually, but also to the $this->name variable (and also class name) in main module .php file 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