We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28780
    • 16 Posts
    Hey, would just like to start off by saying, MODX is wicked! It is officially my CMS of choice.
    I’ve hit a stump on a new project I am working on. The setup is as follows;
    Site A is a community website that allows its users to upload photos. It also provides RSS feeds so users can parse and display those photos on there website. Site A also provides an API that uses CURL to send request to the Site A’s servers.
    Site B (MODX) has snippets to parse the rss feeds and display the photos from Site B. We would also like to utilize the API of site A on SiteB’s manager. Possibly another tab called ’SITE A Photos’ which would be used for users to add/remove photos via the API.
    Is there an easy way to do this without hacking @ MODX? I’ve briefly looked at modules, however I don’t think that is what I am looking for.
    How does MODX allow integration of APIs from facebook/myspace, etc.

    Please see attachment, I would like to be able to create either a Tab or a menu item in the manager, as shown in the image.

    Thanks in advance
    Subhas
      • 10449
      • 956 Posts
      Yes, modules are the way to go. Module content is - in its most simple form - any content you want, sitting in its own iFrame. I use modules whenever I want to manage data that is not directly created by modx, and I want the client to use just one admin-login: the modx manager. Usually my own custom modules access non-modx database tables.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I’ve got a 3-part tutorial on creating an AJAX-based module on my sottwell.com site. The AJAX is a bit dated now, but the principles are the same.
          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
          • 28780
          • 16 Posts
          Awesome, I will look deeper into modules. Thanks alot for the quick reply!
            • 34017
            • 898 Posts
            subha,

            You could also create a snippet on SiteB that runs on the frontend and provides forms to edit the content. You could use eForm to list the values, then on eForm submit, run a snippet that connects to SiteB database and makes the changes (even get results and show the user).

            You can use User Roles/ACL on the frontend. This also keeps people from logging into the manager. I am HUGE fan of not having to show people the manager- if it can be done in the frontend/slimmed-down/and-to-the-point, I like it.

            Chuck
              Chuck the Trukk
              ProWebscape.com :: Nashville-WebDesign.com
              - - - - - - - -
              What are TV's? Here's some info below.
              http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
              http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008