Hi All,
Quick question for you. Iv got the following template:
<TMPL_LOOP ROWS>
<br>
<br>
<TMPL_VAR NAME=MODEL_NAME>
<br>
<img src="<TMPL_VAR NAME=MODEL_THUMB>" border=0 height=100 width=100>
<br>
Can be seen at:
<TMPL_LOOP URLLOOP>
Model Name: <TMPL_VAR NAME=MODEL_NAME>
Model Comp: <TMPL_VAR NAME="MODEL_COMP">
<TMPL_IF NAME="MODEL_COMP eq MODEL_NAME">
Model Name: <TMPL_VAR NAME=MODEL_NAME>
Model Comp: <TMPL_VAR NAME="MODEL_COMP">
The URL on match: <TMPL_VAR NAME=MODEL_URL>
</TMPL_IF>
</TMPL_LOOP>
</TMPL_LOOP>
<br>
I seems that when I call:
Model Name: <TMPL_VAR NAME=MODEL_NAME>
Model Comp: <TMPL_VAR NAME="MODEL_COMP">
from within: <TMPL_LOOP URLLOOP>
It prints the correct data.
Now.. Since that works, am I just using the:
<TMPL_IF NAME="MODEL_COMP eq MODEL_NAME">
Statement WRONG? The data between the IF statement never gets displayed.
Thanks so much! |