« Back to Using Liferay
Make Comments Threaded Or Flat
Table of Contents [-]
Introduction #
By default, all comments will be flat. This is due to a slight performance hit that is encountered when threading comments vs displaying them in a flat list. You can toggle the functionality with Portal.properties however.
Setting the property #
To change the display to threaded instead of flat, override the following setting in portal.properties.
##
## Discussion Tag Library
##
#
# Set the thread view for discussion comments. This will affect Blogs,
# Document Library, and other portlets that use the Discussion tag library
# to provide comments. Set the value to "flat" to paginate comments. Set the
# value to "combination" to show all comments in one page along with a tree
# view of the comments.
#
#discussion.thread.view=combination
discussion.thread.view=flatThe downside of using the combination (threaded) view, is that the replies are not paginated. If there are only a few comments this isn't a bad thing, but if you have hundreds of comments the threaded view could scroll for pages at a time.
3212 Views