Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Get pageid from Smarty
 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-19-2004, 08:02 AM
 
raulcarvalho raulcarvalho is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 9
 

Default 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
Reply With Quote
  #2  
Old 09-20-2004, 08:59 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default Here ya go

{if $smarty.get.pageid eq "22"}{/if}

Put this around your rollover and change the pageid # to fit -

)
Reply With Quote
  #3  
Old 03-01-2005, 02:14 PM
 
raulcarvalho raulcarvalho is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 9
 

Default

Thank you! And sorry for the late answer...
__________________
Raul Carvalho
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:09 PM.

   

 
X-Cart forums © 2001-2020