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. Flag Inappropriate Content
Table of Contents [-]
Introduction #
This functionality the portal allow users to flag content as inappropiate. (Report abuse)
There is a small icon of a red flag close to several contents (blogs, message boards and asset publisher) which enables a user to flag some content as inappropriate for a reason and warn the administrator about it. It can also be used as a portlet, so that users can report the inappropriate content in a page.
Features #
- Any content/page in your portal can be reported
- Editable list of reasons for reporting that can be shown to users
- Allow or not guest users to flag your content
- Comnnunity/organization administrators receive an email for every report with a link to the reported content
Configuration #
There are several properties in portal.properties that can be edited:
##
- Flags Portlet
- Input a list of questions used for flag reasons.
flags.reasons=sexual-content,violent-or-repulsive-content,hateful-or-abusive-content,harmful-dangerous-acts,spam,infringes-my-rights
- Email Notification Settings
flags.email.from.name=Joe Bloggs flags.email.from.address=test@liferay.com
flags.email.subject=com/liferay/portlet/flags/dependencies/email_flag_subject.tmpl flags.email.body=com/liferay/portlet/flags/dependencies/email_flag_body.tmpl
- Set this to true to enable guest users to flag content
flags.guest.users.enabled=false}}}
Development #
There is a taglib called <liferay-ui:flags> which allows to flag any type of content or pages in any portlet.