Introduction to eXo Platform Applications¶
In this chapter, you will learn about applications in eXo Platform, divided into 2 categories:
Introduction to portlets included in eXo Platform, and their details (packaging, portlet class name, available preferences and sample configurations).
These applications are packaged as Web application archives (WARs).
Also, you can specify each portlet and gadget package and its available preferences that allow you to extend the configuration choices for standard preferences.
Portlets¶
This section introduces you to a list of portlets used in applications of eXo Platform, and their details, such as packaging, portlet class name, available preferences and sample configurations.
The portlets are classified basing on each application:
Content¶
This section introduces you to a list of portlets included in Content, and their details (packaging, portlet class name, available preferences and sample configurations).
The Content portlets are packaged in various Web application archives (WARs), including:
Content Detail, Content List, Search:
presentation.war
Sites Explorer:
ecmexplorer.war
ECM Admin:
ecmadmin.war
Fast Content Creator:
fastcontentcreator.war
Authoring Dashboard:
authoring-apps.war
SEO Toolbar:
seo.war
Also, you can specify the package of each portlet and its available
preferences that allow you to extend the configuration choices for
standard preferences defined in portlet.xml
.
Content Detail¶
The Content Detail portlet allows users to view the detail of a specific content.
This is an example of the Content Detail portlet used in Content:
Packaging: This portlet is packaged in the
presentation.war
file.Portlet class name:
org.exoplatform.wcm.webui.scv.UISingleContentViewerPortlet
Available preferences: When using this portlet, you can customize the following preferences:
Preference |
Type |
Value |
Description |
---|---|---|---|
workspace |
|
|
The workspace where content is stored. |
nodeIdentifier |
|
|
The UUID or the path of content that you want to show. |
ShowTitle |
|
|
Shows the content title on the top of the portlet. |
ShowDate |
|
|
Shows the content date on the top of the portlet. |
ShowOptionBar |
|
|
Shows the content date on the top of the portlet. |
ContextEnable |
|
|
Defines if the portlet will use the parameter on URL as the path to content to display or not. |
ParameterName |
|
|
Defines which parameter will be used to get the content’s path. |
PrintParameterName |
|
|
Defines which parameter will be used to get the content’s path to print. |
PrintPage |
|
|
The print preview page. |
basePath |
|
|
Shows the page in which the full content is displayed when the content title is clicked. |
showScvWith |
|
|
The parameter name which shows the content path in URL when the content title is clicked. |
sharedCache |
|
|
Defines if the portlet will use the cache shared between users to display content. If you want the content to be displayed in CLV to be got from one cache, set the value to |
Sample configuration
<portlet-preferences>
<preference>
<name>workspace</name>
<value>collaboration</value>
<read-only>false</read-only>
</preference>
<preference>
<name>nodeIdentifier</name>
<value>/myfolder/mycontent</value>
<read-only>false</read-only>
</preference>
<preference>
<name>ShowTitle</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>ShowDate</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<preference>
<name>ShowOptionBar</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<preference>
<name>ContextEnable</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<preference>
<name>ParameterName</name>
<value>content-id</value>
<read-only>false</read-only>
</preference>
<preference>
<name>PrintParameterName</name>
<value>content-id</value>
<read-only>false</read-only>
</preference>
<preference>
<name>PrintPage</name>
<value>printviewer</value>
<read-only>false</read-only>
</preference>
<preference>
<name>basePath</name>
<value>detail</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showScvWith</name>
<value>content-id</value>
<read-only>false</read-only>
</preference>
<preference>
<name>sharedCache</name>
<value>true</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>
Content List¶
The Content List portlet shows a list of contents which already exist in the system.
This is an example of the Content List portlet used in Content:
Packaging: This portlet is packaged in the
presentation.war
file.Portlet class name: org.exoplatform.wcm.webui.clv.UICLVPortlet
Available preferences: When using this portlet, you can customize the following preferences:
Preference |
Type |
Value |
Description |
---|---|---|---|
mode |
|
|
The mode for displaying content of the portlet: all contents in a specific folder or all specific contents in the portlet. |
folderPath |
|
N/A |
The path to the folder whose contents are displayed by this portlet. |
orderBy |
|
|
The property by which all the contents in the portlet are sorted. |
orderType |
|
|
The type of the content sort method: ascending or descending. |
header |
|
N/A |
The header of the portlet which is displayed at the top of the portlet. |
automaticDetection |
|
|
This value indicates whether the header of the portlet is selected to be the title of the folder given in the folderPath parameter (true value) or the value given in the header parameter above. |
formViewTemplatePath |
|
N/A |
The value is set to “empty” by default and can be replaced with the path to the template which is used to display this portlet content. |
paginatorTemplatePath |
|
|
The path to the paginator used to display the contents in this portlet. |
itemsPerPage |
|
10 |
The number of contents displayed in every “page” of the portlet. |
showThumbnailsView |
|
|
This value indicates whether the content image in this portlet is shown or not. |
showTitle |
|
|
This value indicates whether the content title in this portlet is shown or not. |
showHeader |
|
|
This value indicates whether the content header in this portlet is shown or not. |
showRefreshButton |
|
|
This value indicates whether the Refresh button is shown in this portlet or not. |
showDateCreated |
|
|
This value indicates whether the content created date in this portlet is shown or not. |
showReadmore |
|
|
This value indicates whether the Read more button is shown in every content of the portlet or not. After clicking this button, the user can read the whole text of the content. |
showSummary |
|
|
This value indicates whether the content summary in this portlet is shown or not. |
showLink |
|
|
If this value is |
showRssLink |
|
|
Shows the RSS link of this portlet. |
basePath |
|
|
Shows the page in which the full content is displayed when the user clicks to the Read more button. |
contextualFolder |
|
|
Enables/Disables the contextual mode of the portlet. If enabled, the portlet can take the folder path indicated in the URL to display contents. |
showScvWith |
|
|
The parameter name which shows the folder path in URL when the content title is clicked. |
showClvBy |
|
|
The parameter name which shows the folder path in URL. |
application |
|
|
The application name. |
sharedCache |
|
|
Defines if the portlet will use the cache shared between users to display content. If you want the content displayed in SCV to be got from one cache, set the value to |
Sample Configuration
<portlet-preferences>
<preference>
<name>mode</name>
<value>AutoViewerMode</value>
<read-only>false</read-only>
</preference>
<preference>
<name>folderPath</name>
<value></value>
<read-only>false</read-only>
</preference>
<preference>
<name>orderBy</name>
<value>publication:liveDate</value>
<read-only>false</read-only>
</preference>
<preference>
<name>orderType</name>
<value>DESC</value>
<read-only>false</read-only>
</preference>
<preference>
<name>header</name>
<value></value>
<read-only>false</read-only>
</preference>
<preference>
<name>automaticDetection</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>formViewTemplatePath</name>
<value></value>
<read-only>false</read-only>
</preference>
<preference>
<name>paginatorTemplatePath</name>
<value>/exo:ecm/views/templates/content-list-viewer/paginators/DefaultPaginator.gtmpl</value>
<read-only>false</read-only>
</preference>
<preference>
<name>itemsPerPage</name>
<value>10</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showThumbnailsView</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showTitle</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showHeader</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showRefreshButton</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showDateCreated</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showReadmore</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showSummary</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showLink</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showRssLink</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>basePath</name>
<value>detail</value>
<read-only>false</read-only>
</preference>
<preference>
<name>contextualFolder</name>
<value>contextualDisable</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showScvWith</name>
<value>content-id</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showClvBy</name>
<value>folder-id</value>
<read-only>false</read-only>
</preference>
<preference>
<name>application</name>
<value>ContentList</value>
<read-only>true</read-only>
</preference>
<preference>
<name>sharedCache</name>
<value>true</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>
Search¶
The Search portlet allows users to do a search with any string. In Content, there are three types of search: quick search, advanced search, and search with saved queries.
The users can find this portlet in the front page. This is an example of the Search portlet used in Content:
Packaging: This portlet is packaged in the
searches.war
file.Portlet class name:
org.exoplatform.wcm.webui.search.UIWCMSearchPortlet
Available preferences: When using this portlet, you can customize the following preferences:
Preference |
Type |
Value |
Description |
---|---|---|---|
repository |
|
|
The place where data are stored and maintained. |
workspace |
|
|
The workspace where the content is stored. |
searchFormTemplatePath |
|
The path to the search form template. |
|
searchResultTemplatePath |
|
The path to the search result template. |
|
searchPaginatorTemplatePath |
|
The path to the search paginator template. |
|
searchPageLayoutTemplatePath |
|
The path to the search page template. |
|
itemsPerPage |
|
5 |
The number of items for each page. |
showQuickEditButton |
|
|
Shows or hides the quick edit icon. |
pageMode |
|
|
The way to list search results. |
basePath |
|
|
The page which is used to display the search result. |
detailParameterName |
|
|
Defines which parameter will be used to get the content’s path. |
Sample configuration
<portlet-preferences>
<preference>
<name>workspace</name>
<value>collaboration</value>
<read-only>false</read-only>
</preference>
<preference>
<name>searchFormTemplatePath</name>
<value>/exo:ecm/views/templates/search/search-form/Form.gtmpl</value>
<read-only>false</read-only>
</preference>
<preference>
<name>searchResultTemplatePath</name>
<value>/exo:ecm/views/templates/search/search-result/Results.gtmpl</value>
<read-only>false</read-only>
</preference>
<preference>
<name>searchPaginatorTemplatePath</name>
<value>/exo:ecm/views/templates/search/search-paginator/Paginator.gtmpl</value>
<read-only>false</read-only>
</preference>
<preference>
<name>searchPageLayoutTemplatePath</name>
<value>/exo:ecm/views/templates/search/search-page-layout/PageLayout.gtmpl</value>
<read-only>false</read-only>
</preference>
<preference>
<name>itemsPerPage</name>
<value>5</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showQuickEditButton</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>pageMode</name>
<value>more</value> <!-- supported modes : pagination, more, none -->
<read-only>false</read-only>
</preference>
<preference>
<name>basePath</name>
<value>detail</value>
<read-only>false</read-only>
</preference>
<preference>
<name>detailParameterName</name>
<value>content-id</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>
Sites Explorer¶
The Sites Explorer portlet is used to manage all documents in different drives. With this portlet, users can do many different actions depending on their roles, such as adding/deleting a category and a document, showing/hiding a node, managing publication, and more.
This is an example of the Sites Explorer portlet used in Content:
Packaging: The portlet is packaged in the
ecmexplorer.war
file.Portlet class name:
org.exoplatform.ecm.webui.component.explorer.UIJCRExplorerPortlet
Available preferences: When using this portlet, you can customize the following preferences:
Preference |
Type |
Value |
Description |
---|---|---|---|
categoryMandatoryWhenFileUpload |
|
false |
Forces a user to add a category when uploading or creating a document. |
uploadFileSizeLimitMB |
|
150 |
The maximum size of a file that is uploaded to the system (MB). |
usecase |
|
|
The behavior to access Sites Explorer. By default, the “selection” option is configured. Besides “selection”, there are four other ways to configure the Sites Explorer: Jailed, Personal, Social, Parameterize. |
driveName |
|
|
The name of drive which the user wants to access. |
trashHomeNodePath |
|
|
The location to store the deleted nodes. |
trashWorkspace |
|
|
The name of the workspace where stores the deleted nodes. |
editInNewWindow |
|
|
Allows editing documents with or without a window popup. |
showTopBar |
|
|
Allows showing the Top bar or not. |
showActionBar |
|
|
Allows showing the Action bar or not. |
showSideBar |
|
|
Allows showing the Side bar or not. |
showFilterBar |
|
|
Allows showing the Filter bar or not. |
Sample Configuration
<portlet-preferences>
<preference>
<name>categoryMandatoryWhenFileUpload</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<preference>
<name>uploadFileSizeLimitMB</name>
<value>150</value>
<read-only>false</read-only>
</preference>
<preference>
<name>usecase</name>
<value>selection</value>
<read-only>false</read-only>
</preference>
<preference>
<name>driveName</name>
<value>Personal Documents</value>
<read-only>false</read-only>
</preference>
<preference>
<name>trashHomeNodePath</name>
<value>/Trash</value>
<read-only>false</read-only>
</preference>
<preference>
<name>trashWorkspace</name>
<value>collaboration</value>
<read-only>false</read-only>
</preference>
<preference>
<name>editInNewWindow</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showTopBar</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showActionBar</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showSideBar</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showFilterBar</name>
<value>true</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>
ECM Admin¶
The ECM Admin portlet is used to manage the main Content functions, including templates, explorer, repository, and advanced functions.
This is an example of the ECM Admin portlet used in Content:
Packaging: This portlet is packaged in the
ecmadmin.war
file.Portlet class name:
org.exoplatform.ecm.webui.component.admin.UIECMAdminPortlet
Fast Content Creator¶
The Fast Content Creator portlet consists of two modes: Standard Content Creator and Basic Content Creator. This portlet allows users to quickly create contents without accessing the Sites Explorer portlet.
This is an example of the Fast Content Creator portlet used in Content:
By default, this portlet is applied for the Contact Us portlet in Content.
Packaging: This portlet is packaged in the
fastcontentcreator.war
file.Portlet class name:
org.exoplatform.wcm.webui.fastcontentcreator.UIFCCPortlet
Available preferences: When using this portlet, you can customize the following preferences:
Preference |
Type |
Value |
Description |
---|---|---|---|
mode |
|
|
The default mode of the Fast Content Creator portlet. |
workspace |
|
|
The workspace where the content is stored. |
path |
|
|
The destination path where the content is stored. |
type |
|
|
The node type of document which is shown on the dialog form. |
saveButton |
|
|
The custom button: Save. |
saveMessage |
|
|
The custom message when the user clicks the Save button. |
isRedirect |
|
|
Specifies whether redirecting to another page or not. |
redirectPath |
|
The path to which the page will redirect. |
|
isActionNeeded |
|
|
Specifies whether an action is needed to save to the configuration or not. |
Sample Configuration
<portlet-preferences>
<!-- Specify the workspace name will be use in repository -->
<preference>
<name>mode</name>
<value>basic</value>
<read-only>true</read-only>
</preference>
<preference>
<name>workspace</name>
<value>collaboration</value>
<read-only>false</read-only>
</preference>
<!-- Specify the destination path which will be use to store saved documents -->
<preference>
<name>path</name>
<value>/Groups/platform/users/Documents</value>
<read-only>false</read-only>
</preference>
<!-- Specify the node type of document which will be show on the dialog form -->
<preference>
<name>type</name>
<value>nt:file</value>
<read-only>false</read-only>
</preference>
<!-- The custom button Save -->
<preference>
<name>saveButton</name>
<value>Save</value>
<read-only>false</read-only>
</preference>
<!-- The custom message when click Save button -->
<preference>
<name>saveMessage</name>
<value>This node has been saved successfully</value>
<read-only>false</read-only>
</preference>
<!-- Redirect to other page or not -->
<preference>
<name>isRedirect</name>
<value>false</value>
<read-only>false</read-only>
</preference>
<!-- The page will redirect to -->
<preference>
<name>redirectPath</name>
<value>http://www.google.com.vn</value>
<read-only>false</read-only>
</preference>
<preference>
<name>isActionNeeded</name>
<value>true</value>
<read-only>true</read-only>
</preference>
</portlet-preferences>
SEO Toolbar¶
The SEO Toolbar portlet allows users to manage SEO data of web content and web pages, so they can maximize their website position on search engines.
This is an example of the SEO Toolbar portlet used in Content:
Packaging: This portlet is packaged in the
seo.war
file.Portlet class name:
org.exoplatform.wcm.webui.seo.UISEOToolbarPortlet
Wiki¶
The Wiki portlet provides users with the possibility to enhance their collaboration and share their work across the platform. With Wiki, they can add, modify, or delete its content by using a simplified markup language or a rich-text editor.
Package
This portlet is packaged in the wiki.war
file.
Portlet.xml
See the portlet.xml
file in the project by following this path:
/webapps/wiki/WEB-INF/portlet.xml
.
Preferences
When using this portlet, you can customize the following preferences:
Preference name |
Possible value |
Default value |
Description |
---|---|---|---|
showBreadcrumb |
|
|
Enables the Breadcrumb or not. The Breadcrumb is shown by default. |
showNavigationTree |
|
|
Enables the left wiki page navigation or not. The navigation tree is shown by default. |
uploadFileSizeLimitMB |
|
|
Specifies the maximum file size (MB) to upload. Its default value is 10MB. |
Sample configuration
<portlet-preferences>
<preference>
<name>showBreadcrumb</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>showNavigationTree</name>
<value>true</value>
<read-only>false</read-only>
</preference>
<preference>
<name>uploadFileSizeLimitMB</name>
<value>10</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>
Calendar¶
The Calendar portlet shows the Calendar application with a lot of features provided to users.
Package
The Calendar portlet is packaged in the calendar.war
file.
Portlet.xml
To see the portlet in the project, follow this link.
Forum¶
The Forum portlet is the application for users to post and read messages on different topics.
Package
This portlet is packaged in the forum.war
file.
Portlet.xml
See the
portlet.xml
file in the project at this path:forum/WEB-INF/portlet.xml
.
Preferences
Preference name |
Possible value |
Default value |
Description |
---|---|---|---|
useAjax |
|
|
Defines if links in the Forum will be plain hrefs or javascript ajax (better for SEO) or not. |
showForumActionBar |
|
|
This is the UIForumActionBar. If the value is set to “true”, the UIForumActionBar will be shown. If false, the UIForumActionBar will be hidden. |
forumNewPost |
|
|
Specifies if a post is new. If the post is created within the set period, it is new in the Forum. |
enableIPLogging |
|
|
Enables the IP logging function in the Forum. IP addresses of all posts will be collected. |
enableIPFiltering |
|
|
Enables the IP filter function in Forum, enabling IP addresses to be blocked in the Forum. |
invisibleCategories |
|
|
Hides some categories. If the value is set empty, all categories of the Forum will be shown. |
invisibleForums |
|
|
Hides some Forums. All Forums will be shown if the value is set empty. |
uploadFileSizeLimitMB |
|
|
Limits the size of uploaded files in MB in the Forum. |
isShowForumJump |
|
|
Specifies if the Forum jump panel is shown or not. |
isShowIconsLegend |
|
|
Specifies if the icon legends panel is shown or not. |
isShowModerators |
|
|
Specifies if the moderators panel is shown or not. |
isShowPoll |
|
|
Specifies if the poll panel is shown or not. |
isShowQuickReply |
|
|
Specifies if the quick reply panel is shown or not. |
isShowRules |
|
|
Specifies if the forum rules panel is shown or not. |
isShowStatistics |
|
|
Specifies if the statistics panel is shown or not. |
Events
Name |
Description |
---|---|
ReLoadPortletEvent |
Reloads UIForumPortlet. |
ForumPollEvent |
Sets the render for UIForumPollPortlet. |
ForumModerateEvent |
Sets the render for UIForumModeratorPortlet. |
ForumRuleEvent |
Sets the render for UIForumRulePortlet. |
QuickReplyEvent |
Sets the render for UIForumQuickReplyPortlet. |
ReLoadPortletEvent: This event is fired through UIForumPortlet.
To receive ReLoadPortletEvent, you must use the ForumParameter class with two properties:
Name |
Type |
Possible value |
Description |
---|---|---|---|
topicId |
|
Id of topic. |
Returns the Id of topic for UIForumPortlet. |
isRenderPoll |
|
true/false |
If the value is set to true or false, the UITopicPoll component is rendered or not respectively. |
For example:
....
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setRenderPoll(true);
param.setTopicId(topic.get());
actionRes.setEvent(new QName("ReLoadPortletEvent"), param) ;
....
ForumPollEvent: This event is fired through UIForumPollPortlet.
To receive ForumPollEvent, you must use the ForumParameter class with four properties:
Name |
Type |
Possible value |
Description |
---|---|---|---|
isRenderPoll |
|
True/false |
If the value is set to true or false, the UIForumPollPortlet portlet is rendered or not respectively. |
categoryId |
|
Id of category |
Returns the Id of category for UIForumPollPortlet. |
forumId |
|
Id of forum |
Returns the Id of forum for UIForumPollPortlet. |
topicId |
|
Id of topic |
Returns the Id of topic for UIForumPollPortlet. |
For example:
....
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setCategoryId(categoryId) ;
param.setForumId(forumId);
param.setTopicId(topicId);
param.setRenderPoll(topic.getIsPoll());
actionRes.setEvent(new QName("ForumPollEvent"), param);
....
ForumModerateEvent: This event is fired through UIForumModeratePortlet.
To receive ForumModerateEvent, you must use the ForumParameter class with two properties:
Name |
Type |
Possible value |
Description |
---|---|---|---|
isRenderModerator |
|
True/false |
If the value is set to true or false, the UIForumModeratePortlet portlet is rendered or not respectively. |
moderator |
|
List of user name |
Sets data for UIForumModeratePortlet. |
For example:
....
List<String> moderators = Arays.asList(forum.getModerators());
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setModerators(moderators);
param.setRenderModerator(true);
actionRes.setEvent(new QName("ForumPollEvent"), param);
....
ForumRuleEvent: This event is fired through UIForumRulePortlet.
To receive ForumRuleEvent, you must use the ForumParameter class with two properties:
Name |
Type |
Possible value |
Description |
---|---|---|---|
isRenderRule |
|
True/false |
If the value is set to true or false, the UIForumRulePortlet portlet is rendered or not respectively. |
infoRules |
|
The list of states: can create topic, can add post and topic has lock. |
Sets permissions for users in UIForumRulePortlet. |
For example:
....
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
List<String> list = param.getInfoRules();
if(forum.getIsClosed() || forum.getIsLock()) {
list.set(0, "true");
} else {
list.set(0, "false");
}
list.set(1, String.valueOf(canCreateTopic));
list.set(2, String.valueOf(isCanPost));
param.setInfoRules(list);
param.setRenderRule(true);
actionRes.setEvent(new QName("ForumRuleEvent"), param) ;
....
QuickReplyEvent: This event is fired through UIQuickReplyPortlet.
To receive QuickReplyEvent, you must use the ForumParameter class with five properties:
Name |
Type |
Possible value |
Description |
---|---|---|---|
isRenderQuickReply |
|
True/false |
If the value is set to true or false, the UIQuickReplyPortlet portlet is rendered or not respectively. |
isModerator |
|
True/false |
Specifies if the user is moderator of forum containing the topic with quick reply or not. |
categoryId |
|
Id of category |
Returns the Id of category for UIQuickReplyPortlet. |
forumId |
|
Id of forum |
Returns the Id of forum for UIQuickReplyPortlet. |
topicId |
|
Id of topic |
Returns the Id of topic for UIQuickReplyPortlet. |
For example:
....
ActionResponse actionRes = pcontext.getResponse() ;
ForumParameter param = new ForumParameter() ;
param.setRenderQuickReply(isCanPost);
param.setModerator(isMod);
param.setCategoryId(categoryId) ;
param.setForumId(forumId);
param.setTopicId(topicId);
actionRes.setEvent(new QName("QuickReplyEvent"), param) ;;
....
Answers¶
The Answers portlet is the application to create answers, reply and manage questions.
Package
This portlet is packaged in the faq.war
file.
Portlet.xml
See the
portlet.xml
file in the project following this path:/webapps/faq/WEB-INF/portlet.xml
.
Portlet Preferences
The Answers portlet consists of preferences as follows:
Preference name |
Possible value |
Default value |
Description |
---|---|---|---|
enableViewAvatar |
|
|
Enables users to view the avatar of owner posting the question. |
enableAutomaticRSS |
|
|
Enables users to get RSS automatically. |
enableVotes AndComments |
|
|
Enables users to give votes and comments for the question. |
enableAnonymous SubmitQuestion |
|
|
Enables anonymous users to submit questions. |
display |
|
|
Enables administrators to view unapproved questions in the questions list in UIQuestions. |
SendMailAdd NewQuestion |
|
|
Displays the content of sent email when a new question is added. |
SendMailEdit ResponseQuestion |
|
|
Displays the email content when a response is edited. |
emailMoveQuestion |
|
|
Displays the email content when a question is moved. |
orderBy |
|
|
Arranges questions in the alphabet or created date order. |
orderType |
|
|
Displays questions in the ascending or descending order. |
isDiscussForum |
|
|
Enables the DiscussQuestions function. |
idNameCategoryForum |
|
|
Selects categories and forums for the DiscussionQuestions function. |
uploadFileSizeLimitMB |
|
|
Sets the maximum size of uploaded files in MB. |
Polls¶
The Poll portlet is the application for users to vote any ideas, or activities.
Package
This portlet is packaged in the `` poll.war`` file.
Portlet.xml
See the
portlet.xml
file in the project following this path:poll/WEB-INF/portlet.xml
.
<portlet-preferences>
<preference>
<name>pollIdShow</name>
<value/> <!-- PollId -->
<read-only>false</read-only>
</preference>
</portlet-preferences>
Portlet Preferences
Preference name |
Possible value |
Default value |
Description |
---|---|---|---|
pollIdShow |
|
|
The Id of poll which is displayed in the Polls portlet. |
Search¶
eXo Platform provides with the Unified Search feature which allows users to search for any types of content stored in the content repository.
The Unified Search feature is implemented by using three following portlets:
The Quick Search portlet which allows users to quickly search for content from the top navigation bar.
The Unified Search portlet which allows users to search for content with their desired filters.
The Search Administration portlet which allows administrating the unified search engine.
Package
These portlets are packaged in the unified-search.war
file.
Portlet
See the portlet.xml
file in the project by following this path:
webapps/unified-search/WEB-INF/portlet.xml
Search portlets preferences
The Unified Search and Quick Search portlets use some preferences that change the search scope and show/hide the UI forms:
Preferences |
Description |
Default value for Unified Search |
Default value for Quick Search |
**resultsPerPage ** |
Number of results per page. |
10 |
5 |
searchCurrentS iteOnly |
Searches only in the current site if true, or all sites if false. |
false |
true |
searchTypes |
Limits the search scope to some index types (such as wiki, document); in case there is no type which should be limited, use all value. |
all |
all |
**hideSearchForm ** |
Shows/hides the text box (where users enter the keyword). If true (hide), users can search by entering the keyword in URL, for example /search?q=home&types=all. |
false |
false |
hideFacetsFilt er |
Shows/hides the filters. |
false |
false |
Note that the two last preferences are not set in the portlet.xml
file, but still have default values as indicated. Besides, all the above
preferences are at global scope. That is, if any administrator changes
any search setting of these portlets, either at runtime or via custom
extension, the new setting will be applied for all users and available
sites.
Here is a sample configuration for the Unified Search portlet:
<portlet-preferences>
<preference>
<name>resultsPerPage</name>
<value>10</value>
</preference>
<preference>
<name>searchTypes</name>
<!-- remove the value you don't need -->
<value>file, document, wiki, page, post, people, space, event, task, answer</value>
</preference>
<preference>
<name>searchCurrentSiteOnly</name>
<value>false</value>
</preference>
<preference>
<name>hideSearchForm</name>
<value>false</value>
</preference>
<preference>
<name>hideFacetsFilter</name>
<value>false</value>
</preference>
</portlet-preferences>
and for the Quick Search portlet:
<portlet-preferences>
<preference>
<name>resultsPerPage</name>
<value>5</value>
</preference>
<preference>
<name>searchTypes</name>
<!-- remove the value you don't need -->
<value>file, document, wiki, page, post, people, space, event, task, answer</value>
</preference>
<preference>
<name>searchCurrentSiteOnly</name>
<value>true</value>
</preference>
</portlet-preferences>
Social¶
All Social portlets are packaged in
social-portlet.war
file.Portlet name
Description
Members
Enables users to search for Space members or lists space members in the alphabetical order.
My Spaces
Displays the spaces that user is member or manager.
Space Activity Stream
Shares spaces activities.
Invitations
Lists all people that invite users.
Requests
Lists all invitations requested by users.
Invitation Spaces
Displays the spaces that user is invited.
Pending Spaces
Displays the requests to join spaces page.
Public Spaces
Displays the Public Spaces page.
User Activity Stream
Updates and shares the user’s activities and/or status.
People
Displays the People page.
Connections
Displays the Connections page.
Profile
Displays the User profile page.
Connections Navigation
Displays all connections of a user.
All Spaces
Displays the list of all spaces in the system.
Space Access
Manages the accessing-space permission of users.
Network
Displays the relationship information of the current user.
Home Space
Displays the the space homepage.
Space Menu
Displays the space menu to applications.
Space Setting
Displays the Space Setting page.
People Directory
Displays the page to search for people.
All People
Displays the page that shows all people in the system.