We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6470
    • 69 Posts
    I got a problem,
    the snippet I wrote, do check remote sites and publish content on my site in certain pages,
    So I call it on the page where i need the content to be published

    [[mysnippet]]
    .. the rest is ditto call

    but when i moved the snippet content to plugin
    [[myplugin]] and set events(on cache update or webpage prerender)
    nothing happend
    no errors, just nothing

    What so special about plugins do they require some additional programming?
      • 33372
      • 1,611 Posts
      The short answer is no; they don’t usually require any additional programming. But they do work a little bit differently from snippets in that you don’t generally just spit out your output and it appears on the page. If you post your code here we can help you to figure out why it might not be behaving as you expect as a plugin.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options