Jump to content

Problem with hook exceptions


SIWA_Fabian

Recommended Posts

Hey fellow presta users!

 

I just got a problem with my hook exceptions.

I try to use a certain module which is hooked in displayFooterBefore only on category pages.
My solution for this is to select every other page in the exceptions. But this doesn't work on the account pages and a module page.

I already noticed that the exception of the account section, when selected in the backend, looks like this "myaccount" while you have to put "my-account" into the field.

I try the same with this now:
fc=module&module=ph_simpleblog&controller=list&id_lang=1

The selection in the presta backend looks like this, but doesn't work:
module-ph_simpleblog-list

 

Just in case you want to know:

I'm using 1.7.6.7

Honestly this looks almost like another bug...

 

Maybe someone got an solution to this.

Link to comment
Share on other sites

If you want your module only be executed on category pages, you can do this by implementing following code at the beginning of the hook

// Only execute module when required
if (!($this->context->controller) instanceof CategoryController) {
	return;
}

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...