I’m really desperate here. I need [!newsletter!] to get it’s list from a container or I need [!newspublisher!] to create documents within a particular document group. I looked through [!ditto’s!] code and I don’t understand how it’s doing it. I see the method but I can’t seem to grasp it. is a there an API function available for getting documents based on a container?
I would take a look at the document.parser.class.inc.php that is in your modxroot/manager/includes folder. It has API functions called getAllChildren and getActiveChildren that should be able to get the "all" or "active" documents inside a container. It returns an array representing the data of those documents, so it will require some scripting to handle that data.
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.