[ic] using Usertag table-organize example displays nothing

Curt Hauge interchange-users@interchange.redhat.com
Mon Oct 15 13:54:01 2001


> Quoting Curt Hauge (chc@mninter.net):
> > IC 4.6.5-1 rpm - Construct - Default DB - Redhat 7.0 - Perl 5.6
> >
> > Hi everyone,
> >
> > I am trying to learn how to use the usertag table-organize within the
> > tutorial. I wish to create multiple columns of products with
> many rows. I
> > have copied /usr/lib/interchange/eg/usertag/table_organize to
> > /usr/lib/interchange/usertag/table_organize. I have made the
> following entry
> > into interchange.cfg:
> > (I think this could be the problem)
> > UserTag  table-organize  Order cols  ==> EOR
> >
> > and this is my test page:
> >
> > [include templates/regions/top]
> > [include templates/regions/left]
> > [table-organize
> >                 cols=3
> >                 pretty=1
> >                 tr.0='bgcolor="#EEEEEE"'
> >                 tr.1='bgcolor="#FFFFFF"'
> >                 td.0='align=right'
> >                 td.1='align=center'
> >                 td.2='align=left'
> >                 ]
> >                 [loop list="1 2 3 1a 2a 3a 1b"] <td> [loop-code] </td>
> > [/loop]
> > [/table-organize]
> > [include templates/regions/bottom]
>
> This is one of the cases where you want an interpolate=1 parameter, for
> you don't want table-organize to operate on the source of the loop, but
> the results of the loop.

Thanks for the reply, Mike! However, anyone, I still can not get this to
fly. (I am *really* reaching here, but I am determined to get it.) I have
tried, without success, adding this to interchange.cfg (and then
restarting):

#include usertag/*
UserTag  table_organize  Order cols  ==> EOR
UserTag  table_organize  HasEndTag
UserTag  table_organize  Interpolate

I also tried adding interpolate=1 as a named attribute before cols=3:

[table-organize
      interpolate=1
      cols=3
      pretty=1
[snip]

And:

[table-organize interpolate=1
      cols=3
      pretty=1
[snip]

And tried:
[loop list="1 2 3 1a 2a 3a 1b" interpolate=1]

And:
[loop-code interpolate=1]

All have been tried independent of each other and result in no data
displayed. I just tried changing interchange.cfg and restarting, with no
success:

#include usertag/*
UserTag table-organize Order cols
UserTag table-organize attrAlias columns cols
UserTag table-organize Interpolate
UserTag table-organize addAttr
UserTag table-organize hasEndTag
UserTag table-organize Documentation <<EOD

I found it here in the mail archives, from Mike Heins -
http://interchange.redhat.com/archive/interchange-users/2000/msg09193.html

I'm in a muddle. Ideas, anybody?

Thanks a lot!

Curt Hauge