Foros de discusión

liferay-portlet-ext.xml being ignored

Marc Piparo, modificado hace 12 años.

liferay-portlet-ext.xml being ignored

Junior Member Mensajes: 43 Fecha de incorporación: 14/03/11 Mensajes recientes
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!!
thumbnail
Anil Sunkari, modificado hace 12 años.

RE: liferay-portlet-ext.xml being ignored

Expert Mensajes: 427 Fecha de incorporación: 12/08/09 Mensajes recientes
Please check your logs while deploying & if possible mark it overhere.
thumbnail
Amos Fong, modificado hace 12 años.

RE: liferay-portlet-ext.xml being ignored

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
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>
Marc Piparo, modificado hace 12 años.

RE: liferay-portlet-ext.xml being ignored

Junior Member Mensajes: 43 Fecha de incorporación: 14/03/11 Mensajes recientes
ah. that looks to have done the trick. was missing the <liferay-portlet-app> and doctype definition.
thanks!!!
thumbnail
Riya M S, modificado hace 11 años.

RE: liferay-portlet-ext.xml being ignored

Junior Member Mensajes: 45 Fecha de incorporación: 30/01/13 Mensajes recientes
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


<!--?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 ?
thumbnail
Amos Fong, modificado hace 11 años.

RE: liferay-portlet-ext.xml being ignored

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Hi Riya,

I think you need to include the full entries. Copy and past the original <portlet> entries and then make your modifications.