<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Good luck Mike, hope you’ll recover fast!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> interchange-users-bounces@icdevgroup.org [mailto:interchange-users-bounces@icdevgroup.org] <b>On Behalf Of </b>Mike Heins<br><b>Sent:</b> Tuesday, June 12, 2018 15:29<br><b>To:</b> interchange-users@icdevgroup.org<br><b>Subject:</b> Re: [ic] Setting values in tags<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>When my carpal tunnel surgery happens, maybe even a bit more. I can hope!<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Tue, Jun 12, 2018 at 7:25 AM, Gert van der Spoel <<a href="mailto:gert@3edge.com" target="_blank">gert@3edge.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>> -----Original Message-----<br>> From: <a href="mailto:interchange-users-bounces@icdevgroup.org">interchange-users-bounces@icdevgroup.org</a> [mailto:<a href="mailto:interchange-users-">interchange-users-</a><br>> <a href="mailto:bounces@icdevgroup.org">bounces@icdevgroup.org</a>] On Behalf Of Mike Heins<br>> Sent: Tuesday, June 12, 2018 14:49<br>> To: <a href="mailto:interchange-users@icdevgroup.org">interchange-users@icdevgroup.org</a><br>> Subject: Re: [ic] Setting values in tags<br>> <br>> Quoting Ren?? (<a href="mailto:interchange@hertell.com">interchange@hertell.com</a>):<br>> > Hi All!<br>> ><br>> > I am trying to solve probably a very easy problem, but currently my<br>> > brain just stands still and won't help me :-(<br>> ><br>> > I'm replacing the product_tree-menu with a Bootstrap accordion-menu,<br>> > and I want it to keep the menu open at the right product_group when<br>> > I'm browsing down to item-level or category-level.<br>> ><br>> > To be able to catch the current product_group and category, i have<br>> > modified the ncheck_category-tag to save the current prod_group and<br>> > category by adding this to the right place of the tag:<br>> ><br>> > $::Values->{prod_group} = "$prod_group"; $::Values->{category} =<br>> > "$category";<br>> ><br>> > I get these values nicely set, but they tend to get "stuck", so if i<br>> > get to a non-product page like index.html, these values are still with<br>> > the old value set, and they get cleared only after a page-refresh..<br>> ><br>> > What should i do so that i can use the session for storing values that<br>> > are valid only for the current page, and are "forgotten" when the next<br>> > page is loadedd or the value is not more set by the<br>> > ncheck_category.tag?<br>> ><br>> > Best Regards from Finland<br>> <br>> Probably the best place is $Tmp:<br>> <br>>  $Tmp->{prod_group} = "$prod_group";<br>>  $Tmp->{category} = "$category";<br>> <br>> If you are global and in a different package than Vend::Interpolate:<br>> <br>>  $Vend::Interpolate::Tmp->{prod_group} = "$prod_group";<br>> $Vend::Interpolate::Tmp->{category} = "$category";<br>> <br>> Then they can be accessed with:<br>> <br>>       [tv prod_group]<o:p></o:p></p></div></div><p class=MsoNormal>Mike still has it! ;)<o:p></o:p></p><div><div><p class=MsoNormal><br><br>_______________________________________________<br>interchange-users mailing list<br><a href="mailto:interchange-users@icdevgroup.org">interchange-users@icdevgroup.org</a><br><a href="http://www.icdevgroup.org/mailman/listinfo/interchange-users" target="_blank">http://www.icdevgroup.org/mailman/listinfo/interchange-users</a><o:p></o:p></p></div></div></blockquote></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><div><div><p class=MsoNormal>Just because something is obviously happening doesn't mean something<br>obvious is happening. --Larry Wall<o:p></o:p></p></div></div></div></div></div></div></body></html>