Configuring the Questions App
Available: Liferay DXP/Portal 7.3+
There are two primary methods for configuring the Questions app: directly through the app configuration and through the System Settings configuration.
To configure through the application,
Click on the Options icon () of the app and click Configuration.
To configure through System Settings,
Navigate to Control Panel → System Settings → Third Party.
Click on Questions under Widget Scope.
Topic Display Style
Topics can be displayed as cards or as a list.
Click on the Options icon () of the app and click Configuration.
Under General Settings, there is a Show Cards for Topic Navigation option.
If this is checked, the app will display separate cards for each question topic. If it is not checked, the app will display a list of all the questions.
Limiting Topic Display
Questions default display behavior is to show all Topics. You can opt to only display certain topics by configuring a Root Topic. To only display specific sub-topics or questions do the following,
Click on the Options icon () of the app and click Configuration.
Click the Select button under Root Topic ID.
Select a topic and click Save. The app will now only show sub-topics and questions for the selected topic.
Managing App Permissions
To modify permissions for the app,
Click on the Options icon () of the app and click Permissions.
A new window will open.
Assign permissions for different Roles. Click Save.
Redirecting Guest Users to Login
To enable this functionality you must configure it through System Settings,
Navigate to Control Panel → System Settings → Third Party.
Click on Questions under Widget Scope.
Check Enable Redirect to Login
Guests user are now redirected to a login page when they try to click Ask Question.
A Service Access Policy needs to be created to allow Guest users to view the app.
Creating a Service Access Policy to Allow Guest Viewers
To create a new policy,
Navigate to Control Panel → Service Access Policy. Click on the Add icon ().
Give the policy a Name and Title. Click the Switch to Advanced Mode button at the bottom. Add the following two signatures under Allowed Service Signatures,
com.liferay.message.boards.service.MBCategoryService#getCategoriesCount com.liferay.message.boards.service.MBCategoryService#getCategory
Click Save to save the new policy.
System Configuration Reference
Setting | Description |
---|---|
Show Cards for Topic Navigation | If this is checked, the app will display separate cards for each question topic. If it is not checked, the app will display a list of all the questions. |
Use Topic Names in URL | If this is checked, each topic name will be used in a more friendly URL instead of a topic ID number. |
Root Topic ID | This setting is ignored. |