| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Get pageid from Smarty | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Get pageid from Smarty
Hi,
I have some hover buttons in head.tpl and I need to change the hover images according to the pageid (I have some static pages created in admin). Is there any way to access the pageid variable in Smarty? i'm looking for a way that doesn't need any changes to PHP files. Thank you, Raul
__________________
Raul Carvalho |
|||||||
#2
|
|||||||
|
|||||||
Here ya go
{if $smarty.get.pageid eq "22"}{/if}
Put this around your rollover and change the pageid # to fit - ) |
|||||||
#3
|
|||||||
|
|||||||
Thank you! And sorry for the late answer...
__________________
Raul Carvalho |
|||||||
|
|||
X-Cart forums © 2001-2020
|