Simple array to vairiable question using Toolkit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigtwin
    Mivite Lite

    • Nov 2011
    • 1

    #1

    Simple array to vairiable question using Toolkit

    As shown in the code below, I have an array, I want to put each array value into a variable (g.Category_Code) for additional handling. Please note the 4th line of code, where I'd like to put each of the array values. I've tried every iteration of vNum, mvte:vNum, &mtve:vNum, {vNum}, etc, etc I can think of.

    Sorry for such a basic question. I'm (obviously) not a Miva person, I'm just trying to help out some friends with their site.
    Thanks in advance.
    -bt


    <mvt:item name="toolkit" param="sacreate|myArray|WBiggies, WShorties, WCones, WSticks|," />

    <mvt:foreach iterator="vNum" array="myArray">
    <br> &mvte:vNum;

    <mvt:item name="toolkit" param="vassign|g.Category_Code|WHAT_DO_I_PUT_HERE? ?" />

    <table border="2" width="160" height="250">
    <tr>
    <td valign="top">
    BEST SELLERS

    <br />
    <hr size="1px" width="100%" color="#EB2026">

    <mvt:item name="fonts" param="body_font">
    <mvt:item name="toolkit" param="bestseller|pcount|g.Category_Code|5|1" />

    <mvt:if expr="pcount GT 0">
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tr><td align="left" valign="top">xx
    <mvt:foreach iterator="bestsell" array="bestseller">
    • <a href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&mvta:bestsell:code;&Store_Code=&mvta:store:co de;">
    &mvte:bestsell:name;<a>
    &mvte:bestsell:counter;
    <br />
    </mvt:foreach>
    </td></tr>
    </table>
    </mvt:if>

    </mvt:item>
    </td>
    </tr>
    </table>

    </mvt:foreach>
  • nottheusual1
    Mega Mivite


    • Jul 2008
    • 1124

    #2
    Re: Simple array to vairiable question using Toolkit

    tried g.vNum or l.all_settings:vNum?

    Comment

    Working...
    X