Forums de discussion

liferay-portlet-ext.xml being ignored

Marc Piparo, modifié il y a 12 années.

liferay-portlet-ext.xml being ignored

Junior Member Publications: 43 Date d'inscription: 14/03/11 Publications récentes
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, modifié il y a 12 années.

RE: liferay-portlet-ext.xml being ignored

Expert Publications: 427 Date d'inscription: 12/08/09 Publications récentes
Please check your logs while deploying & if possible mark it overhere.
thumbnail
Amos Fong, modifié il y a 12 années.

RE: liferay-portlet-ext.xml being ignored

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
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, modifié il y a 12 années.

RE: liferay-portlet-ext.xml being ignored

Junior Member Publications: 43 Date d'inscription: 14/03/11 Publications récentes
ah. that looks to have done the trick. was missing the <liferay-portlet-app> and doctype definition.
thanks!!!
thumbnail
Riya M S, modifié il y a 11 années.

RE: liferay-portlet-ext.xml being ignored

Junior Member Publications: 45 Date d'inscription: 30/01/13 Publications récentes
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, modifié il y a 11 années.

RE: liferay-portlet-ext.xml being ignored

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
Hi Riya,

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