At last I have managed to put together a package and some documentation for
PubKit, a snippet for creating and publishing
MODx Evolution documents using front-end web page forms. Full details and download are available at
http://www.pogwatch.com/pubkit.html, or you can download from here with less documentation.
PubKit is now published in the
Extras. Please raise further questions in its
support thread.
PubKit goes beyond the capabilities of its predecessor
pkBlog. Key features include:
- PHP classes define types of item, so a variety of formats can be defined without fiddling with the core code;
- classes permit you to create specialized methods and properties for specific types of item, e.g. data validation;
- possibility of using custom tables as well as MODx resources as the basis of your item (you still need to create the tables with phpMyAdmin or a MODx module);
- update any built-in or custom template variable using the snippet (in the sample files, set or clear the published field or an archive flag from the management list);
- hooks to use different language files for prompts and error messages
I know there’s still plenty that could be improved - including better safeguards against item duplication (if you use Back from the preview), and simple arrangements to cater for multiple-author blogs. And there are plenty of comments in the code starting "TO DO...". All the same, I hope you’ll find it worth a try, and let me know how you get on.
KP