Generic Comments code.

2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: March 4, 2010   (RSS)

Re: [Toledoh] Generic Comments code.

By Chris - March 4, 2010

Hi Tim,

Looks good! :)

The only thing I would change would be to move the rel_table and rel_item filter from the foreach into a "where" clause in the getRecords(). That way you can avoid the overhead of loading all the comments on every page. The getRecords() call could be moved directly above the comment foreach if that would make things simpler.

Great work! :)
All the best,
Chris