Jump to content

SOLUCIONADO - Ocultar item sólo en la homepage


devmurk

Recommended Posts

Hola a todos,

Necesito ocultar el módulo de menú solo de la homepage, he intentado modificar el tpl de la siguiente forma, pero se oculta de todas las páginas

{if $page_name != 'index'}
  {hook h='displayMainMenu'}
{/if}

Alguna idea?

Gracias

Edited by Garou42
Tema solucionado (see edit history)
Link to comment
Share on other sites

53 minutes ago, Garou42 said:

Hola a todos,

Necesito ocultar el módulo de menú solo de la homepage, he intentado modificar el tpl de la siguiente forma, pero se oculta de todas las páginas


{if $page_name != 'index'}
  {hook h='displayMainMenu'}
{/if}

Alguna idea?

Gracias

Me cuelo,

Solo te contesto, para avisarte de que te han contestado en la misma duda que has preguntado en el foro ingles: https://www.prestashop.com/forums/topic/839149-hide-modulo-only-in-homepage/

Cito la respuesta de @nadie  -> https://www.prestashop.com/forums/profile/123440-nadie/

6 minutes ago, nadie said:

Hi,

How are you?

What version of Prestashop do you use?

The code that shows that "you want to hide a hook" on the main page. If it is a module in particular, in principle the conditional should be in the TPL of the module.
 

In PS 1.7 is -> {$page.page_name} to check what section you are in.
In PS 1.6 is -> {$page_name}

 

---------------

By the way, from the admin panel in the tab modules -> positions (in PS 1.7 Design -> Positions) you can put exceptions to the modules to decide which sections you want to show them

aj.png.27715a9bd0a683a3c7618abe26c3938e.png

Attached capture
 

Sorry for my English

 

  • Thanks 1
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...