Object comments

Available in

Example

Following example (“latest comments” box) creates link back to article page using comment summary as anchor text.

<a href="{comment.get_article_href}"><vte:value select="{comment.get_summary}" /></a>

Params

Parameter name Value Description
id integer comment id
article_id integer article id
description text comment body
create_dt date comment creation date
author string author name
email string author email
ip string author IP address
status 0 | 1 comment status
www string author homepage
get_id integer Returns comment id
get_article_id integer Returns article id
get_article_title string Returns article title
get_article_href string Returns article href
get_description text Returns comment body
get_create_dt date Returns comment creation date (formated)
get_user_id integer Returns user id
get_author string Returns author name
get_email string Returns author email
get_ip string Returns author IP address
get_status 0 | 1 Returns comment status
get_www string Returns author homepage
get_gravatar string Returns author gravatar url
get_author_name string Returns author name
get_summary string Returns comment snippet
 
devdoc/objects/comments.txt · Last modified: 2010/03/10 04:43 by krcko
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki