liferay

How can I add web content type in liferay 6?

喜你入骨 提交于 2019-12-11 04:06:58
问题 The default types: 1- test 2- General and so on How can I add web content type in liferay? 回答1: Add any extra types in portal-ext.properties for the following property and restart the server journal.article.types=announcements,blogs,general,news,press-release,test 来源: https://stackoverflow.com/questions/8787562/how-can-i-add-web-content-type-in-liferay-6

Liferay IPC listener runs multiple times

左心房为你撑大大i 提交于 2019-12-11 04:03:00
问题 First of all sorry if this question has been already asked somewhere, but after a few hours on google I still can't find an answer. I am pretty new in portlet development, (but we have a shortage of developers and I have to work with it time to time), so the solution might be something trivial, but I really don't have enough experience with it. The problem is I have two portlets on a page and I try to let one of them know about changes in the other. For this I use IPC. In the first one I have

liferay 7 - Mismatched anonymous define()

筅森魡賤 提交于 2019-12-11 03:39:31
问题 I'm trying to include sockjs (v1.1.2) in my liferay 7 portlet, but I'm receiving this warning: Mismatched anonymous define() module: function ()... and then the library isn't loaded. I directly included the .js file in my liferay-portlet.xml like this: <header-portlet-javascript>/common/js/sockjs.js</header-portlet-javascript> I don't have any idea to make it work 回答1: Looks like you are running into an issue that's been fixed by LPS-68298. If you are using Liferay 7.0 DXP SP2+ or Liferay 7.0

Administrative portlets (eg. Wiki Admin, Message Boards Admin) in Liferay

别来无恙 提交于 2019-12-11 03:13:28
问题 How can I create administrative portlet for my custom portlet, such as Wiki Admin for Wiki portlet in Liferay. Is it possible ? 回答1: Admin portlets are not something different then other portlets in the sense that they are just new portlets which re-use some of the functionality (service methods and some JSPs) of their counter-parts and add more functionalities for Administrator like add/edit/delete/assign-roles/assign-permissions/configurations etc. So I think you just need to create a

Integrating Alfresco and Liferay to show only one folder

时光总嘲笑我的痴心妄想 提交于 2019-12-11 02:59:15
问题 I'm trying to integrate Alfresco and Liferay. I have configured CMIS integration following this guide. It works without problem. But now, I want to configure that repository to show only one folder. I can set a start folder on "Document and Media Portlet", but if I try to add a folder of the Alfresco repository, it says that there are not folders. Here is a screenshot of "Document and Media portlet" integrated with an Alfresco repository And this is when I try to select one folder of the

ADD PortletResource permission for specific users to VIEW custom portlet PROGRAMATICALLY

孤人 提交于 2019-12-11 02:35:46
问题 I want my custom portlet to be view-able by specific users but they're ALL MEMBERS OF SAME GROUP/SITE. i.e... User 1: my custom Portlet is not view-able Admin: my custom portlet is view-able User 2: my custom portlet is view-able How to ADD Portlet-Resource permission for particular user to VIEW custom portlet PROGRAMATICALLY in my Jsp??? Here's my code.. <%@page import="com.liferay.portal.security.permission.ActionKeys"%> <%@page import="com.liferay.portal.security.permission

Two action URLs in one jsp

一个人想着一个人 提交于 2019-12-11 02:15:20
问题 I just want to know, if I can have two <portlet:actionURL var="wakeup"> action urls in one jsp. Which will be called depending on a filled inputs and JS submiting this forms. Example: JS: function startActions() { if (document.getElementById("shut").checked || document.getElementById("reboot").checked) { document.getElementById("shutdownRebootForm").submit(); } if (document.getElementById("wake").checked) { document.getElementById("wakeUpForm").submit(); } } HTML: <portlet:actionURL var=

Liferay: After changing Public Virtual Host settings, can't log in

橙三吉。 提交于 2019-12-11 01:01:22
问题 I did a mistake and seems like I can't fix it alone, if it can be fixed. I have the Liferay URL looking like this: http://192.168.10.10:8080/web/guest ; I wanted to remove the '/web/guest' part from the address so from Manage -> Settings wrote 192.168.10.10:8080 to the Public Virtual Host field. After saving it, I can't log in anymore. Everytime I write http://192.168.10.10:8080/login (as I did before), it goes to the index page and not the login page. Then if I write the login after 'web

Is it possible to define the order of initialization of portlets on start of portal?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 00:44:37
问题 I would like to specify the order of initialization of portlets when the portal server starts. Is it possible? 回答1: Yes, it is possible. You can specify the order of deployment of the plugins by setting the required-deployment-contexts property in liferay-plugin-package.properties of the dependent portlet. Examples: If your portlet my-custom-portlet depends on other plugins then you can specify as follows: 1) For single dependency required-deployment-contexts : required-deployment-contexts

use-default-template configuration tag does not work

谁说胖子不能爱 提交于 2019-12-11 00:40:04
问题 I've created simple "Hello world" portlet and just added <use-default-template>true</use-default-template> to the portlet section of liferay-portlet.xml file. Portlet stopped to work with the following exception in the log 11:29:03,973 ERROR [PortletLocalServiceImpl:656] com.liferay.portal.kernel.xml.DocumentException: Error on line 13 of document : The content of element type "portlet" must match "(portlet-name,icon?,............ and so on The name of my tag is present here. Why is this? Is