Fórum
liferay-portlet-ext.xml being ignored
Marc Piparo, modificado 12 Anos atrás.
liferay-portlet-ext.xml being ignored
Junior Member Postagens: 43 Data de Entrada: 14/03/11 Postagens Recentes
Sorry, new to LR Ext environment. Using 6.0.6.
But I am having trouble understanding how liferay-portlet-ext.xml works. I want to override portlet 20's <indexer-class> entry. I put the complete <portlet> entry in liferay-portlet-ext.xml file, I see the deploy copies it to tomcat-6.0.29/webapps/ROOT/WEB-INF, in same folder as liferay-portlet.xml. However my change is not picked up. If i make my change directly in liferay-portlet.xml, all is well. What am I doing wrong for liferay-portlet-ext.xml to not be read?
thanks!!
But I am having trouble understanding how liferay-portlet-ext.xml works. I want to override portlet 20's <indexer-class> entry. I put the complete <portlet> entry in liferay-portlet-ext.xml file, I see the deploy copies it to tomcat-6.0.29/webapps/ROOT/WEB-INF, in same folder as liferay-portlet.xml. However my change is not picked up. If i make my change directly in liferay-portlet.xml, all is well. What am I doing wrong for liferay-portlet-ext.xml to not be read?
thanks!!
Anil Sunkari, modificado 12 Anos atrás.
RE: liferay-portlet-ext.xml being ignored
Expert Postagens: 427 Data de Entrada: 12/08/09 Postagens Recentes
Please check your logs while deploying & if possible mark it overhere.
Amos Fong, modificado 12 Anos atrás.
RE: liferay-portlet-ext.xml being ignored
Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Can you post your liferay-portlet-ext.xml?
It should look something like this right?
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.1.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>20</portlet-name>
...
</portlet>
</liferay-portlet-app>
It should look something like this right?
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.1.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>20</portlet-name>
...
</portlet>
</liferay-portlet-app>
Marc Piparo, modificado 12 Anos atrás.
RE: liferay-portlet-ext.xml being ignored
Junior Member Postagens: 43 Data de Entrada: 14/03/11 Postagens Recentes
ah. that looks to have done the trick. was missing the <liferay-portlet-app> and doctype definition.
thanks!!!
thanks!!!
Riya M S, modificado 11 Anos atrás.
RE: liferay-portlet-ext.xml being ignored
Junior Member Postagens: 45 Data de Entrada: 30/01/13 Postagens Recentes
Hi Amos,
I am trying to display My Account portlet in portal page instead of Control Panel. I have already tried by this below solution
liferay-portlet-ext.xml
portlet-ext.xml in my ext-plugin :
I am getting error notifiaction at <portlet> tag and in <init-param> tag can you pls help me on this ?
I am trying to display My Account portlet in portal page instead of Control Panel. I have already tried by this below solution
liferay-portlet-ext.xml
<!--?xml version="1.0"?-->
<liferay-portlet-app>
<portlet>
<portlet-name>2</portlet-name>
<system>false</system>
</portlet>
</liferay-portlet-app>
portlet-ext.xml in my ext-plugin :
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
<portlet>
<portlet-name>2</portlet-name>
<display-name>My Account</display-name>
<init-param>
<name>view-action</name>
<value>/my_account/edit_user</value>
</init-param>
<supports>
<mime-type></mime-type>
</supports>
</portlet>
</portlet-app>
I am getting error notifiaction at <portlet> tag and in <init-param> tag can you pls help me on this ?
Amos Fong, modificado 11 Anos atrás.
RE: liferay-portlet-ext.xml being ignored
Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Hi Riya,
I think you need to include the full entries. Copy and past the original <portlet> entries and then make your modifications.
I think you need to include the full entries. Copy and past the original <portlet> entries and then make your modifications.