Re: Setting values in tags

Mike Heins <[email protected]> Wed, 13 Jun 2018 06:32:15 -0500
Newsgroups gmane.comp.web.interchange.users
Message-ID <CACcURn-S+sx=y-6LUCtd81TPwAmNDJ3nYZg0p7fnR92Ud_JYWQ@mail.gmail.com>
On Wed, Jun 13, 2018 at 5:14 AM, RenĂ© <[email protected]> wrote:

>
> I stumbled now into a new problem.. :-( Is there a way to get eg the
>>> current
>>> sku from the flypage into a template-component?
>>>
>>
>> Using scratch?
>>
>> http://www.icdevgroup.org/xmldocs/glossary/scratch.html
>>
>
> I tried that:
>
> Adding this on flypage.html
> [set foocode][item-code][/set]
> [scratch foocode]
>
> This shows the item-code on every page correctly
>
> Adding [scratch foocode] to a component like product_tree and setting the
> foocode-scratch on flypage.htm displays the item-code with one page delay,
> so if i load items in this order
>
> page            Scratch-value in product_tree
> site.tld/item1  [empty]
> site.tld/item2  item1
> site.tld/item3  item2
>
> I remember there was some trick to get this done, but i can't remember it
> anymore :-(


You can find stuff like that in the source. If you are in global code, i.e.
your tag, you can use this to set a $Tmp value:

          $Vend::Interpolate::Tmp->{flypart} = $Vend::FlyPart;

_______________________________________________
interchange-users mailing list
[email protected]
http://www.icdevgroup.org/mailman/listinfo/interchange-users