Announcement

Collapse
No announcement yet.

release 9.0004 cannot find variable for device width

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    release 9.0004 cannot find variable for device width

    Hello forum:
    Just installed 9.0004. I understood that the device width variable was included with 9.0004. Cannot find it in my variable dump
    Is it visible to template code? Possibly it's a function?
    Cheers, Larry
    Last edited by wajake41; 07-29-15, 09:16 PM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    Re: release 9.0004 cannot find variable for device width

    I believe it's a module you have to install, check the release notes for details.
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: release 9.0004 cannot find variable for device width

      Hi Rick:
      Couldn't find the 9.0004 release notes. Do you have a link?

      Thanks, Larry
      Larry
      Luce Kanun Web Design
      www.facebook.com/wajake41
      www.plus.google.com/116415026668025242914/posts?hl=en


      Comment


        #4
        Re: release 9.0004 cannot find variable for device width

        Originally posted by wajake41 View Post
        Hi Rick:
        Couldn't find the 9.0004 release notes. Do you have a link?

        Thanks, Larry
        I gleaned through the notes and didn't see it mentioned.

        http://extranet.miva.com/forums/show...-Available-Now
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          Re: release 9.0004 cannot find variable for device width

          It's the second thing mentioned:

          • Component module cmp-mv-clientdimensions enables the construction of responsive design websites by providing StoreMorph tokens that indicate the size and layout of the client window
          Last edited by Rick Wilson; 07-30-15, 08:41 AM.
          Thanks,

          Rick Wilson
          CEO
          Miva, Inc.
          [email protected]
          https://www.miva.com

          Comment


            #6
            Re: release 9.0004 cannot find variable for device width

            It's also mentioned as a "native module" but without any how-to. I found the module in the Modules...
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


              #7
              Re: release 9.0004 cannot find variable for device width

              Originally posted by wajake41 View Post
              Hello forum:
              Just installed 9.0004. I understood that the device width variable was included with 9.0004. Cannot find it in my variable dump
              Is it visible to template code? Possibly it's a function?
              Cheers, Larry
              Hi Larry,

              You'll need to create an item that references the cmp-mv-clientdimensions module. Once that item is created you should add the item reference to the head tag of any pages you want to be able to use this, or you can add it to the global head tag and assign the item to all pages. You would add <mvt:item name="clientdimensions (or whatever you name the item)" />. Then every page would have access to tokens:
              • l.settings:clientdimensions:detected; - Whether the dimensions are set or not
              • l.settings:clientdimensions:orientation; - landscape or portrait
              • l.settings:clientdimensions:class; - class is set in the template in User Interface -> Settings -> Client Dimensions tab
              • l.settings:clientdimensions:width; - width of the screen
              • l.settings:clientdimensions:height; - height of the screen


              Let me know if you have any further questions.

              Thanks
              David Carver
              Miva, Inc. | Software Developer

              Comment


                #8
                Re: release 9.0004 cannot find variable for device width

                Hi David:
                Thanks for helping on this. I found the module cmp-mv-clientdimensionsin my module list and it's marked as active. Now I need to "You'll need to create an item that references the cmp-mv-clientdimensions module", hum I don't know how to do this part.

                Please help,
                Thanks, Larry
                Larry
                Luce Kanun Web Design
                www.facebook.com/wajake41
                www.plus.google.com/116415026668025242914/posts?hl=en


                Comment


                  #9
                  Re: release 9.0004 cannot find variable for device width

                  Originally posted by wajake41 View Post
                  Hi David:
                  Thanks for helping on this. I found the module cmp-mv-clientdimensionsin my module list and it's marked as active. Now I need to "You'll need to create an item that references the cmp-mv-clientdimensions module", hum I don't know how to do this part.

                  Please help,
                  Thanks, Larry
                  Go to the Items tab in User Interface. Click the + icon (Add). Set the code to clientdimensions, use the lookup icon to find the cmp-mv-clientdimensions module. Click Add again. You've now created an item reference to that module. Then add <mvt:item name="clientdimensions" /> to the <head> tag of any pages you want to use it, or you can just add it to the global header. Don't forget to assign the item to whichever pages reference it too!

                  Hope this helps, let me know.

                  Thanks
                  David Carver
                  Miva, Inc. | Software Developer

                  Comment


                    #10
                    Re: release 9.0004 cannot find variable for device width

                    Thanks David:
                    Got it working.
                    Larry
                    Luce Kanun Web Design
                    www.facebook.com/wajake41
                    www.plus.google.com/116415026668025242914/posts?hl=en


                    Comment


                      #11
                      Re: release 9.0004 cannot find variable for device width

                      Originally posted by wajake41 View Post
                      Thanks David:
                      Got it working.
                      Glad you got it working. Let us know if you have any other questions!

                      Thanks
                      David Carver
                      Miva, Inc. | Software Developer

                      Comment

                      Working...
                      X