We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Where is the code for the TV output widgets? I haven’t been able to find it!

    What I’m doing is using the marquee widget to scroll a list of images in a row across the top of the page. It’s working great, except it scrolls the images across the page and clear off the page before the head of the list starts across again. I’m needing it to be a continuous loop, like the image scroller used in the iPod intro on the apple.com page. I could easily enough use their scrolling js script, but I’d rather use native MODx widgets if at all possible.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 25663 MODX Staff
      • 12,272 Posts
      /manager/media/script/bin/
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        found the file; tmplvars.format.inc.php. Now to get it to do what I want.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Funny! Did a Google search for information on the webelm.js library, and the first item was an entry in the MODx bug tracker!
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 1553
            • 17 Posts
            Hello,

            Despite the warning that I should consider starting a new topic I reply to this topic because I came here through a search and the topic fits to my own case smiley

            Under /manager/media/script/bin/ I’ve found the marquee.js and examined it to get an idea if I can use this code to make my marquee scroll continuously. However, if I’m correct there is no parameter in this marquee.js with which I can make the marquee scroll continuously. I suppose that I’m using the widget correctly because my Ditto call that I put in the "Default value" works fine and scrolls.
            Sottwell mentioned the tmplvars.format.inc.php, I also looked at this file but no clue.

            Can someone point me in a better direction?

            Thanks!

            Andres
              • 1553
              • 17 Posts
              Hello again,

              I looked again (and better) at tmplvars.format.inc.php and I found the section where the marquee is created (case "marquee"). At some point the div marqueeContent is generated to display the contents of the marquee. Would it be a solution to have this div generated twice? Or would this postpone the time that the empty space appears?
              Or, is it impossible to create a continuously scrolling marquee with this script? I’d appreciate it if someone told me so. In the meanwhile I’ll look for a replacement script.

              Best regards,
              Andres
                • 1553
                • 17 Posts
                Hi,

                I must be missing something very obvious here as none replies wink

                Seriously: I found a script that should make the marquee start over again but it was done by applying equal line-heights and font-sizes. Apparently this is not a simple subject.

                best regards,

                Andres