[ic] ITL help needed

Tommy Stoffels tstoffels at gmail.com
Sat May 21 20:15:38 EDT 2005

On 5/21/05, Davor Ocelic <docelic at mail.inet.hr> wrote:
> > One more thing I'd like to know:
> > How can I output/read the code field(primary key of products table) or
> > any other field from the database-record corresponding to *the item
> > currently being viewed*.
> On the flypage, you mean?
> It's ideologically the same trick as above, where "item" prefix is initialized
> to the current item,
> Here's a trivial pages/flypage.html :
> <html><body>
> <h3>Product number: [item-code]</h3>
> <p>[item-field description] . . . [currency][item-field price][/currency]</p>
> <br>
> Return to the [page index]Index page</a>.
> </body></html>
Hmm, 'item'-prefix - sounds logical to me.
I can see these tags work in the pages/flypage.html, but I am building
a component, which I plan to put in one of the component-slots of that
flypage.html template.
Now if I try using [item-code] or [item-field price] in my component
(which is loaded with the flypage.html), it just outputs the tags

What I am trying to do (i.e. my component) looks somewhat like this:
<!-- BEGIN COMPONENT [control component test_component] -->
Item No. [item-code] could be yours for only [item-field price]
<!-- END COMPONENT [test_component] -->

But as I said, interchange doesn't seem to care about replacing the
[item-...] tags at all if used in my component.

Thanks in advance.

More information about the interchange-users mailing list