We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    Hi, i am trying to use a little chunk from evo in revo.

    here s the code I use:

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


    It keep returning this java script error
    $not defined in $().ready(function() {

    It does not do that in the same script bit in evo and more the codaslider works fine in evo with ditto.
    The only difference is the [*id*] became [[*id]] or is that wrong?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Do you have the jquery library file loaded? This error usually means that it’s not loaded, so the $ shortcut isn’t defined.
      <script type="text/javascript" src="wherever-the-jquery-file-is.js"></script>
        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
        • 10076
        • 1,024 Posts
        Hi,

        yeah these are in place.
        It indeed seems as if the jquery does not function so probably not an evo/revo issue.
        The "pages" are stacked vertically instead of horizontaly. But th [[*id]] still exists in REVO I guess?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Yes, [[*id]] refers to the ID of the current resource being processed.
            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
            • 10076
            • 1,024 Posts
            I think I remember something, very stupid. My host has the wrong MYSQL version installed and I disabled a check in the setup of Revo to make it pass the install requirements. Sorry for the waste of time. I will test locally.