[ic] dynamic flypage

Mat Jones - booksellersolutions.com interchange-users@lists.akopia.com
Mon Jul 2 12:08:00 2001


Hi,

I am trying to create a flypage which is built dynamic based on a variable
in the variable.txt file, to allow my clients to easily modify what they
show on their flypage.
For some reason the [item-field] tag is not being interpolated.
I hope someone can help.

In my variable.txt:

FLYPAGEMETA     Illustrator,Publisher     Flypage Setup
FLYPAGEFIELDS   illustrator,publisher      Flypage Setup

On my  FlyPage:

[seti flypagemeta]__FLYPAGEMETA__[/seti]
[seti flypagefields]__FLYPAGEFIELDS__[/seti]
[seti flypageresults]
[perl interpolate=1]
@metafields = split(/\,/,$Scratch->{flypagemeta});
@displayfields = split(/\,/,$Scratch->{flypagefields});
foreach (@displayfields) {

$buf .= <<EOF
<tr><td><b>$metafields[$count]:</b>[item-field $_]
</td></tr>
EOF
$count = $count + 1;
};
return $buf;
[/perl]
[/seti]

[scratch flypageresults interpolate=1]

Output on my flypage:

Illustrator: [item-field illustrator]
Publisher: [item-field publisher]


booksellersolutions.com
Read what the SF Examiner says about booksellersolutions.com:
http://www.sfexaminer.com/business/default.jsp?story=b.web.0121

2141 Mission St #301
San Francisco, CA 94110
(415) 554-0568