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
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.
-
☆ 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.
Awesome, I will look deeper into modules. Thanks alot for the quick reply!
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