We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8194
    • 5 Posts
    Hey everyone. I’m new to programming in the modx environment and I have been trying to get a javascript slideshow to work within the Modx environment with no success. It works fine on my desktop and all of the files loaded to the server fine. Everything the slideshow background image is there, but it doesn’t want to run. Has anyone also had this problem? Thanks in advance.
      • 27519
      • 275 Posts
      Which slideshow are you using?

      Have you looked with Firebug or ChromeJavascript console whether there are any exceptions generated?
        MODx Revolution / MAMP / OS X
        • 10076
        • 1,024 Posts
        I tried a couple different slideshows, mostly jquery, but that worked fine. Are you on Modx Revo or Evo?
          • 8194
          • 5 Posts
          Quote from: skndn60 at Oct 18, 2010, 08:22 AM

          Which slideshow are you using?

          Have you looked with Firebug or ChromeJavascript console whether there are any exceptions generated?
          Hey, I’m using Visual Slideshow 1.0.
            • 8194
            • 5 Posts
            Quote from: Frank at Oct 18, 2010, 08:31 AM

            I tried a couple different slideshows, mostly jquery, but that worked fine. Are you on Modx Revo or Evo?
            I’m using ModX version 0.9.6.3. Not sure about Revo or Evo.
              • 10076
              • 1,024 Posts
              Well it should make no difference compared to evo.
              The syntax is the same, so what have you tried sofar?

              Btw you should upgrade to the latest evo, because of security issues!
                • 8194
                • 5 Posts
                Quote from: Frank at Oct 18, 2010, 10:00 AM

                Well it should make no difference compared to evo.
                The syntax is the same, so what have you tried sofar?

                Btw you should upgrade to the latest evo, because of security issues!

                Thanks, I’ll definitely have to upgrade.
                It seems like there is some kind of disconnect when it comes to the inclusion of the .js files. I’m suspecting it might have something to do with the line of code that reads <style type="text/css">.slideshow a#vlb{display:none}</style> Is there any special way to reference files in this manner? I am currently placing this code in my template files and then placing the HTML code for the slideshow in the content area. Thanks for your help.
                  • 10076
                  • 1,024 Posts
                  I am currently trying to integrate coda slider in revo, here s what I got sofar, just to give you an idea:

                  First in the header of my template are my these links to the java files/scripts, obviously you will have to copy to a directory someweher in the assets folder. the assets/js seems to be the logical choice:
                  <script type='text/javascript' src='[[++base_url]]assets/js/jquery-1.3.2.min.js'></script>
                  <script type='text/javascript' src='[[++base_url]]assets/js/jquery.easing.1.3.js'></script>
                  <script type='text/javascript' src='[[++base_url]]assets/js/jquery.coda-slider-2.0.js'></script>
                  [[$codaSlider]]
                  That [[+base url]] is Revo specific, in Evo it looks like [(base_url)].
                  Also the [[$codaSlider]] is the way to call a chunk in Revo, in Evo it looks like {{codaSlider}}.

                  Here the content of that chunk:
                  <script type="text/javascript">
                  $().ready(function() {
                         $('#coda-slider-[[*id]]').codaSlider({
                             dynamicArrows: 1,
                             dynamicTabs: 1
                     
                         });
                     });
                  </script>



                  So I create chunks, in the codaSlider chunk I put the bit of java script that triggers the animation, so I could also put that directly in my header. But I use a chunk to make it easier to find and edit. Next, because I want it all to be "dynamic" I put a "ditto" call in the content area of a document. That document will be the container of the different slides. {{dittoSlider}} is that call and the content of that chunk is:
                  <div class="coda-slider-wrapper">
                       <div class="coda-nav-left" id="coda-nav-left-[[*id]]">  
                  <div class="coda-slider preload" id="coda-slider-[[*id]]">
                  [[Ditto? &startID=`[[*id]]`&tpl=`contentTpl`]]
                  
                  </div><div class="coda-nav-right" id="coda-nav-right-[[*id]]" ></div></div></div>


                  Finally I need to define that tpl used in that ditto call because that will shape things, so here the content of that ditto tpl:
                  <div class="panel"><div class="panel-wrapper"><h2 class="title">[[+longtitle]]</h2><h3 class="title">[[+title]]</h3>[[+content]]</div></div>


                  All the div parts you see in those bits of code are bassicaly the HTML of the original slider.

                  Did you check the smoothgallery slideshow option here?





                    • 18389
                    • 169 Posts
                    Frank, have you incorporated the coda slider into maxigallery?
                      www.markojokic.com
                      • 10076
                      • 1,024 Posts
                      not into maxigallery, no. Would be fun. Created this one, userfreindly. Both arrows and tabs are possible.