By: stevenho
Date: 2007-04-16
Time: 12:43
|
SERIAL PROBLEM
Hi all,
I use tbs template and have problem with it, my array data :
Array
(
[0] => Array
(
[id] => 24044
[name] => Remington 870 Express Super Magnum 5135 12ga 3.5 inch 3o inch
[price] => $388.20
[last] =>
[quan] => 28
)
[1] => Array
(
[id] => 22345
[name] => Haydels B81 BLUE & SNOW GOOSE CALL
[price] => $8.89
[last] =>
[quan] => 13
)
[2] => Array
(
[id] => 22167
[name] => PRIM 819 TIMBER WENCH
[price] => $12.22
[last] =>
[quan] => 14
)
[3] => Array
(
[id] => 20249
[name] => FED WF1434 SPEEDSHK 12 11/8 STL 25/10
[price] => $10.00
[last] =>
[quan] => 57
)
[4] => Array
(
[id] => 10019
[name] => Flambeau 5400MW Masters Series Magnum Mallard w/ water keel 6
[price] => $46.66
[last] =>
[quan] => 12
)
[5] => Array
(
[id] => 5407
[name] => Beretta J391C26 A391 Xtrema2 12ga 26 inch OBF Max4 camo
[price] => $1,076.68
[last] =>
[quan] => 20
)
)
And here is template code :
[blkData;block=begin;serial]
<div class="prodRow">
<div class="block">
<h2>[blkData_1.name;noerr;block=div]</h2>
<p class="itemCode">Item#: [blkData_1.id;noerr;] </p>
<p><img src="imgs/product_01.jpg" alt="product" width="101" height="73" /></p>
<div class="prodInfo">
<p>Price:</p>
<p class="price">[blkData_1.price;noerr;magnet=p]</p>
<a href="#[blkData_1.id;noerr;]" class="toCart">Add to Cart[blkData_1.quan;noerr;if [val]='0';then '';else ' ';magnet=a]</a> <a href="#[blkData_1.id;noerr;]">Details</a> </div>
</div>
<div class="block">
<h2>[blkData_2.name;noerr;block=div]</h2>
<p class="itemCode">Item#: [blkData_2.id;noerr;] </p>
<p><img src="imgs/product_01.jpg" alt="product" width="101" height="73" /></p>
<div class="prodInfo">
<p>Price:</p>
<p class="price">[blkData_2.price;noerr;magnet=p]</p>
<a href="#[blkData_2.id;noerr;]" class="toCart">Add to Cart[blkData_2.quan;noerr;if [val]='0';then '';else ' ';magnet=a]</a> <a href="#[blkData_2.id;noerr;]">Details</a> </div>
</div>
<div class="block">
<h2>[blkData_3.name;noerr;block=div]</h2>
<p class="itemCode">Item#: [blkData_3.id;noerr;]</p>
<p><img src="imgs/product_01.jpg" alt="product" width="101" height="73" /></p>
<div class="prodInfo">
<p>Price:</p>
<p class="price">[blkData_3.price;noerr;magnet=p]</p>
<a href="#[blkData_3.id;noerr;]" class="toCart">Add to Cart[blkData_3.quan;noerr;if [val]='0';then '';else ' ';magnet=a]</a> <a href="#[blkData_3.id;noerr;]">Details</a> </div>
</div>
<br class="clear" />
</div>
<p><img src="imgs/illus_prodSepLn.gif" alt="" />[blkData.last;noerr;magnet=p]</p>
[blkData;block=end]
I want magnet tag: '<p><img src="imgs/illus_prodSepLn.gif" alt=""/> </p>' if there's ladt line.
Please give me solution for this,
Thanks,
|
By: Skrol29
Date: 2007-04-17
Time: 12:04
|
Re: SERIAL PROBLEM
Hi Stevenho
What to you need for your template ?
What I don't understand is that all your serial sections are identical.
When you say "I want magnet tag [...] if there's last line.", do you mean a data in the column named "last" in your data ?
Is it for all records or only the set of 3 records ?
|