We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/605">SIMPLX_RPC 0.3-beta</a> by larscwallin.

    Brief Description:
    SIMPLX RPC - by Lars C Wallin
    Version 0.3 - 091129

    IMPLEMENTED METHODS:
    - modx.db.select (fields, from, where, [orderby], [limit])
    - modx.getpageinfo (pageid, fields, [active])
    - modx.runsnippet (snippetname, [params])
    - modx.gettemplatevaroutput (idnames, [docid], [published])
    - modx.getdocuments (ids, [published], [deleted], [fields], [where], [sort], [dir], [limit])

    Also included samples of the jBind plugin
      • 16681
      • 62 Posts
      I have to recommend the runsnippet method. You can easily code your own functions to get any info from ModX, or make changes to the CMS. I made a cool snippet today which resizes images on the fly for a dynamic image preview smiley

      Happy hacking wink
        Keep it SIMPLX
        • 23605
        • 16 Posts
        I downloaded the snippet called it simplx_rpc. I tried the call examples in the snippet file but nothing happened in the browser

        Could anyone please give me an example of how it works or some demo application using this snippet?
        huh
          Never give up. You can do it.
          • 26931
          • 2,314 Posts
          Hi larscwallin,

          thanks for sharing
          ....i get an "Error" message when i try to download the zip-file
          download working for the previous versions though
            • 16681
            • 62 Posts
            Hi smiley
            The download seems to be broken...
            Guess they are working to fix it.
            Try the 0.2 for now.

            Regarding tutorials, I will put together some more substantial stuff soon smiley

            Ciao
              Keep it SIMPLX
              • 16681
              • 62 Posts
              Here comes the 0.3 version as an attachment. The ModX guys seem to have problems getting the file up...
              Ill be back soon with more smiley
                Keep it SIMPLX
                • 16681
                • 62 Posts
                Hi again,

                Currently thinking about making a client side API for ModX, which use the SIMPLX_RPC plug.
                Would be cool to have a ready made js object to controll our dear CMS with. And much easier to understand for all levels of tech-knowlage.

                Ill keep yall posted smiley

                Ciao
                  Keep it SIMPLX