Is it possible to load content into CMSMS via a UDT, perhaps via the API?
I am thinking of parsing affiliate product feeds and loading each 'part' or product as a page, therefore needing to update things like menu name, title, content, page URL and possibly even Page Specific Metadata.
I can already parse a feed and load it onto my own mysql table, but would like to automate the process of building pages with it. You could call it autoblogging perhaps.
[SOLVED] Loading content via a UDT - API?
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
[SOLVED] Loading content via a UDT - API?
Last edited by essexboyracer on Sun Sep 18, 2011 7:43 pm, edited 1 time in total.
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: Loading content via a UDT - API?
The function in CGContentUtils.module.php , _createDomContentObj(), looks like what I need to do, but how to get that into a UDT?
Re: Loading content via a UDT - API?
Something like this?
Code: Select all
$gCms = cmsms();
$CGContentUtils = $gCms->modules['CGContentUtils']['object'];
$content = $CGContentUtils->_createDomContentObj(doesittakeanyparameters?);
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: Loading content via a UDT - API?
Really? that easy! are there any docs for this, so I can learn it myself?
Re: Loading content via a UDT - API?
Docs... maybe the wiki handbook http://wiki.cmsmadesimple.org/index.php ... fined_Tags
This kind of code is also all around in this forum
This kind of code is also all around in this forum

-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: Loading content via a UDT - API?
I need a bit more assistance with this one, any ideas? I am fine creating a UDT, but using other modules and whether they "takeanyparameters" loses me a bit
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: [SOLVED] Loading content via a UDT - API?
Nervermind, I found Symphony CMS which uses XML as its default data storage and templating, ideal for XML product feeds