| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
only show if on one static page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() i want to have a banner show up in the left bar of my site if the user is one one specific static page, what 'if' statement do i need to put into my left_bar.tpl template to have the banner show if the user is only on that one specific page?
__________________
WebDesignHelper.co.uk Version 4.4.2 of x-cart |
|||||||
#2
|
|||||||||
|
|||||||||
![]() try - replace XX with the pageid
{if $main eq 'pages' and $page_data.pageid eq 'XX'}....{/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() worked it out:
{if $smarty.get.pageid eq "3"} banner here {/if}
__________________
WebDesignHelper.co.uk Version 4.4.2 of x-cart |
|||||||
#4
|
|||||||
|
|||||||
![]() or:
{if $main eq 'pages' and $page_data.pageid eq 'XX'}....{/if} also works as stated above!
__________________
WebDesignHelper.co.uk Version 4.4.2 of x-cart |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|