| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Banner Rotating Script - Smarty Error | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to use this banner rotating script on my homepage, but I get a smarty error when inserting it into welcome.tpl. I haven't changed the images/links in the code because I just want to get it functioning first...
Can someone tell me what might be causing the smarty error in the following code? Code:
Thanks, Jeff
__________________
X-Cart Gold - Version 4.0.19 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Insert literal tags around the code like so:
Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks Jon...that worked perfectly!
So are these {literal} tags necessary for any Javascript code? Jeff
__________________
X-Cart Gold - Version 4.0.19 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Javascript code often has tags such as brackets which smarty will try to interpret as smarty code, the literal tags says to take it literally and not parse it. In short, javascript doesn't always need the literal tags, but most often does.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|