Hi
I need to create a new resource in modx evo (1.0.4) automatically from a snippet.
I've seen the $modx->runProcessor method in articles, but this is only for revolution.
Is there a method like this I can use for evo ? and if so is there any documentation for this.
Maybe I've missed something obvious ?
Any advice gratefully received.
showman
In Evolution, you have to create all the appropriate resource fields and add a row to the modx_site_content table using SQL.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/modx.html
-
☆ A M B ☆
- 24,524 Posts
Is this what you have in mind?
http://www.pogwatch.com/pubkit.html
There's also a library for managing resources from the front-end, but I can't think of its name at the moment. I'll post if I can find it.
Ah, yes. It was part of the original pkblog package; the latest versions appear to be modified for Revo but the original is for Evo.
http://modx.com/extras/package/docmanager?version=4d556ac7b2b083396d0001fa
[ed. note: sottwell last edited this post 14 years, 8 months ago.]
That is great !
This has also made me realise how straight forward the database is (unlike some other CMS's I could mention ! ).
Many thanks.
showman
-
☆ A M B ☆
- 24,524 Posts
Well, Evo is anyway. Revo is another story, although most of the resource and element tables are the same.