| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
dynamically assign right or left to align tag | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I would like to assign "right" or "left" values to the align tag depending on the reading_direction_tag which contains the values RTL or LTR. {assign var="test" value='right'} <td height="100" width="100%" valign="top" align="test" > </td> Could someone help me please. Thanks.
__________________
Gold 4.1.5 |
|||||||
#2
|
|||||||
|
|||||||
![]() Code:
__________________
-matt version 4.1.5 |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks alot matt.
The following code works as the content of reading_direction_tag is empty for LTR languages. {if $reading_direction_tag eq ""} {assign var="direction" value="left"} {else} {assign var="direction" value="right"} {/if} cheers.
__________________
Gold 4.1.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|