Class DoGetCommentList
source code
Gets comments for the given params and populates the template context
with a special comment_package variable, whose name is defined by the
``as`` clause.
Syntax:
{% get_comment_list for [pkg].[py_module_name] [context_var_containing_obj_id] as [varname] (reversed) %}
Example usage:
{% get_comment_list for lcom.eventtimes event.id as comment_list %}
Note: ``[context_var_containing_obj_id]`` can also be a hard-coded
integer, like this:
{% get_comment_list for lcom.eventtimes 23 as comment_list %}
To get a list of comments in reverse order -- that is, most recent
first -- pass ``reversed`` as the last param:
{% get_comment_list for lcom.eventtimes event.id as comment_list reversed %}