Nooku Framework Comments Component
raeldc/com_comments
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/** * com_comments Developed using Nooku Framework 0.7 * @package com_comments * @copyright Copyright (C) 2010 JooCode di Flavio Copes. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPLv2 */ This component can be used to enable users to add comments to any item you like. INSTALLATION Simply download the package and symlink from the Joomla installation /components: ln -s com_comments_directory/site com_blog /language/en-GB: ln -s com_comments_directory/language/en-GB.com_comments.ini en-GB.com_comments.ini USAGE Add a com_comments entry to the jos_components table and create the DB tables found in sql/ You can add comments to any Nooku component simply putting a line of code in your view tmpl file. For example, this line puts in the page all the comments (and the comment entry form) referring to the post 1. <? KFactory::tmp('site::com.comments.controller.comment') ->sort('comments_comment_id') ->direction('asc') ->target_type('post') ->target_id(1) ->return(KRequest::url().'#comments') ->limit(0) ->browse(); ?> Tested on Nooku Framework rev. 2513
About
Nooku Framework Comments Component
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published