Jump to content

$page_name different value in header.tpl and footer.tpl


Recommended Posts

hi all

I am trying to hide the right column on homepage based on $page_name value.

The point is that when I print the $page_name on header.tpl it returns "index" but when I print it on footer.tpl it returns "product", therefore i cannot hide the right column.

 

is that normal?

I thought that the expected value on footer.tpl for the homepage should be "index" too.

am I right?

 

thanks

 

PS 1.5.3.1

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

  • 3 months later...

I'm having a similar problem. My reassurance block is changing the page_name to 'category' all the time. It's 'index' in header and footer. I'm trying to use the global variable to hide a block if state is true, but of course it is always 'category' so it's not working.

 

Where or how are the page_names set and stored? Any ideas why the module is overwriting the page_name?

 

I've upgraded to 1.5.4 on a test site, I've re-installed the module etc but {$page_name} keeps just outputting as 'category'

 

Please help

Many Thanks

Link to comment
Share on other sites

That only means the module was badly programmed, not taking it into account. The paypal module is also causing troubles with SSL since it retwrites the base uri to ALWAYS be ssl, thus causing darn issues with ajax and XSS-like call being issued. Remove it from the module, nothing else to do :)

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

  • 3 weeks later...
×
×
  • Create New...