miva script variables come from ???

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

    • Mar 2013
    • 5

    #1

    miva script variables come from ???

    Howdy,

    Reading some documentation, I probably just havent gotten to these parts yet, but...

    In <td bgcolor = "&mvt:body:alink;">, how do you know body:alink is a variable you can use? How do you get its name / discover it?

    Also, how is miva script related to SMT? (Im assuming SMT is built on top of miva script)
    Is the g in g.[something] some global object? How to examine it?

    Example : <mvt:if expr = "g.Maintenance_Warning_Message">

    Ive seen a l. object somewhere too. Are there others?

    Thank you,

    J
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    Re: miva script variables come from ???

    The best way to see what variables are available on the page is to use the token list module. It is part of every store and needs to be turned on under utilities.

    Once activated, when you are editing a page in the Miva Admin you will see a "var list" button on the right side of the page.

    This will open up token list which will show you the Global and Local variables available on that page. (Each page has different variables depending on which items are assigned)

    I would also recommend you take our free developer training series. It gives you the background you need about the Miva template language and explains things like the difference between g.somevar and l.settings:somevar

    The most flexible & secure ecommerce software on the market. Build your online store today with a shopping cart platform by Miva Merchant.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • loughj
      Mivite Lite

      • Mar 2013
      • 5

      #3
      Re: miva script variables come from ???

      Originally posted by Brennan View Post
      The best way to see what variables are available on the page is to use the token list module. It is part of every store and needs to be turned on under utilities.

      Once activated, when you are editing a page in the Miva Admin you will see a "var list" button on the right side of the page.

      This will open up token list which will show you the Global and Local variables available on that page. (Each page has different variables depending on which items are assigned)

      I would also recommend you take our free developer training series. It gives you the background you need about the Miva template language and explains things like the difference between g.somevar and l.settings:somevar

      http://www.mivamerchant.com/training/dts1

      That is incredibly helpful, thank you.

      -J

      Comment

      Working...
      X