Jump to content

The global $page_name in blocktopmenu


Recommended Posts

Hi,

i've noticed there is a variable called "$page_name" in the code of the top navigation menu, but this variable (global) is empty everywhere. Is this something planned for the next prestashop version? Or is $page_name set somewhere, like in frontcontroller or so?

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 8 months later...

It has been around for a while now. I use a lot of times to load stylesheets and other things I might only need on the index page.

{if $page_name == 'index'}
<script type="text/javascript">
   var yiw_prettyphoto_style = 'pp_default';
</script>
{else}
{/if}

Like this.

Link to comment
Share on other sites

×
×
  • Create New...