This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Zurück zu 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.
24802 Angesehen