« Volver a Using Liferay

Make Comments Threaded Or Flat

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=flat

The 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.

0 archivos adjuntos
24607 Accesos
Promedio (1 Votar)
La valoración media es de 3.0 estrellas de 5.
Comentarios
Respuestas anidadas Autor Fecha
Why not personalize this like in Message Board Corné Aussems 22 de enero de 2010 4:23
I agree Luis Mas 17 de julio de 2011 14:33

Why not personalize this like in Message Board
Publicado el día 22/01/10 4:23.
Publicado el día 17/07/11 14:33 en respuesta a Corné A.