[ic] Setting values in tags

Mike Heins mike at heins.com
Wed Jun 13 11:32:15 UTC 2018


On Wed, Jun 13, 2018 at 5:14 AM, René <interchange at hertell.com> 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20180613/1a4c13e5/attachment.html>


More information about the interchange-users mailing list