PDA

View Full Version : Xtemplate <img src="{myVar}" /> problem



TiBeN
20 Dec 2010, 10:37 AM
Hi,

I have a problem with xtemplate :

Here is my "template" :



<div id="tpl-title-overview">
<img src="{images}" />
<p>{nom}</p>
<p>{annee}</p>
<p>{images}</p>
</div>
the result in firebug:



<img src="%7Bimages%7D" />
<p>Pump Up The Jam</p>
<p>1989</p>
<p>http://localhost/myweb/files/Title/1/PumpUpTheJam_1_1.jpg</p>
I don't understand why my last "call" to {images} is well replaced but not the first in the img src attribute!

for information i call xtemplate like this in a panel items description :



{
html : new Ext.XTemplate.from('tpl-title-overview').apply(this.titleRecord.data);
}
I hope someone could help me!

TiBeN
22 Dec 2010, 2:30 AM
no idea ?
it's a bug ?

i've found another thread with similar problem but without any solution :(

http://www.sencha.com/forum/showthread.php?109469-XTemplate-img-src-issue

Animal
22 Dec 2010, 5:53 AM
Don't use that "from" thing.