We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13438
    • 16 Posts
    Hi everybody! I have this site:
    http://www.scalcomunicacion.com/index.php?id=5

    and would like to see if there is a module or plugin where I can open the links I am making with getResources in a modal window or pop up. I tried to search for it but no good luck.

    Thanks in advance!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That just needs Javascript. There are a ton of these, for example there are several listed here.

      What you need to do is adjust your getResources chunk tpl to output the content the Javascript application of your choice requires.

      For example a tpl for using the SimpleModal JQuery plugin could be something like this:
      <script>$.modal("<div><a href="[[~[[+id]]]]"><h1>[[+pagetitle]]</h1></a><p>[[+content]]</p></div>");</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