15
Cognifty 18: Custom Content
Release 18 is the latest version of Cognifty. The new big feature is custom content publishers. You can create your own types of content based off of the main file upload tool or text tool. You can write your own plug-in to handle the publishing and do any sort of compiling, checking, or linking required before the content goes out to the site.
The blog system has been ported over to this custom content publishing framework. To make your own publisher you can use the blog publisher as a starting point. To activate your publisher simply add one configuration line to the default.ini
;This is a default content publisher which is required for the blog module to function
content.extrasubtype.blogentry=
@sys.path@/modules/blog/lib/Blog_Content_Publisher.php:Cgn_Content_Publisher_Blog
The content.extrasubtype. is required, anything after that must be a unique identifier for your content type.
I have been using this to make a client support portal. I upload files and set which client organization that file belongs to, then when I publish it, I can move the content to whatever database table I want, or publish it to a disk cache.
Other ideas could be:
- Create a movie review content type which requires an IMDB link before publishing.
- Make an e-book content type which could convert wiki syntax into PDF.
- Split publish a text file into an article and a knowledge base entry.
- Schedule your publishing by saving the content to another system or another database table.
- Push your content to a static site build tool, like a specialized cruise control.
- Push your content to Subversion or other source code manager.




