Jump to content

Trying to display a custom hook on a specific page – Prestashop 1.7 [solved]


Gfinfo web

Recommended Posts

Hello,

I am using the module from Prestahero: "Manufacturer/Brand Logos Carousel Slider PRO".
For layout purposes, I am using the module's custom hook to bypass the two-column layout at the bottom.

image.thumb.png.3e4461b074e64b8235d8ec5c83321e55.png

(Screenshot: themes\theme_1151 (child classic)\templates\layouts\layout-both-columns.tpl)

image.thumb.png.4dfad6b787950bbc1864a37904c46114.png

However, in this state, I can't control its position properly, as this custom hook does not appear in the positions list.

Is there a way to modify the hook so that it displays only on the index page?

Edited by Gfinfo web (see edit history)
Link to comment
Share on other sites

  • Gfinfo web changed the title to Trying to display a custom hook on a specific page – Prestashop 1.7 [solved]

Just a follow up. 

I included the code like this for 3 particular pages:

		  {if $page.page_name == 'index'}
            {hook h='etsManufacturer'}
          {/if}
          {if $page.page_name == 'category'}
            {hook h='etsManufacturer'}
          {/if}
          {if $page.page_name == 'product'}
            {hook h='etsManufacturer'}
          {/if}

Is there a better way or is this the best way?

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...