[ic] dynamic flypage

Mark Johnson interchange-users@lists.akopia.com
Mon Jul 2 14:09:00 2001


This cannot work. Interpolation order won't allow it.

Set your perl block with [perl tables=products], set my $sku =
q{[item-code]}, and use $Tag->field($_, $sku) to get the data.

"Mat Jones - booksellersolutions.com" wrote:
> 
> 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
> 
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users

-- 
Mark Johnson
Senior Systems Architect - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912