Path

ez projects / ezcomments / forum / general / filtering comment_list


Filtering comment_list

You need to be logged in to post messages in the forums. New users may register here.

Frédéric SCHARLY

Member since:
27 January 2012

Posts: 2

Friday 27 January 2012 1:51:47 pm

Hi,

Is it possible to filter a list of comment by class_identifier ?
Up

Chen Xiongjie

Member since:
24 August 2009

Posts: 17

Friday 27 January 2012 3:36:44 pm

Hello Frederic,

Currently there is no template level efficient API for that. There are 2 approaches for this:

1) get contentobject id array first and then fetch comment list by content list. But if the content is huge there might be performance issue(cache block might help in this).

http://doc.ez.no/Extensions/eZ-Pu...nctions/comment_list_by_content_list

2) write your own template.

Ref:
database schema:
https://github.com/ezsystems/ezcomments/blob/master/sql/mysql/schema.sql , see ezcomment table


Example of fetching comment list: https://github.com/ezsystems/ezco...blob/master/classes/ezcomcomment.php

Hopefully it helps.

Best
Chen
Up

Frédéric SCHARLY

Member since:
27 January 2012

Posts: 2

Friday 27 January 2012 3:59:45 pm

Thanks for the reply, it's the two ways I have considered. I think the template approach sounds better.
Up

You need to be logged in to post messages in the forums. New users may register here.