Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Marc Piparo
liferay-portlet-ext.xml being ignored
September 5, 2011 9:27 PM
Answer

Marc Piparo

Rank: Junior Member

Posts: 43

Join Date: March 14, 2011

Recent Posts

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!!
Anil Sunkari
RE: liferay-portlet-ext.xml being ignored
September 5, 2011 10:04 PM
Answer

Anil Sunkari

Rank: Expert

Posts: 386

Join Date: August 11, 2009

Recent Posts

Please check your logs while deploying & if possible mark it overhere.
Amos Fong
RE: liferay-portlet-ext.xml being ignored
September 6, 2011 1:38 AM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

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
RE: liferay-portlet-ext.xml being ignored
September 6, 2011 6:14 AM
Answer

Marc Piparo

Rank: Junior Member

Posts: 43

Join Date: March 14, 2011

Recent Posts

ah. that looks to have done the trick. was missing the <liferay-portlet-app> and doctype definition.
thanks!!!
Archana S
RE: liferay-portlet-ext.xml being ignored
March 21, 2013 11:05 PM
Answer

Archana S

Rank: Junior Member

Posts: 45

Join Date: January 30, 2013

Recent Posts

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

 1
 2<?xml version="1.0"?>
 3<!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">
 4
 5<liferay-portlet-app>
 6
 7<portlet>
 8   <portlet-name>2</portlet-name>
 9   <system>false</system>
10</portlet>
11
12</liferay-portlet-app>


portlet-ext.xml in my ext-plugin :

 1<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">
 2
 3
 4<portlet>
 5   <portlet-name>2</portlet-name>
 6   <display-name>My Account</display-name>
 7 
 8   <init-param>
 9     <name>view-action</name>
10     <value>/my_account/edit_user</value>
11   </init-param>
12
13     <supports>
14         <mime-type></mime-type>
15     </supports>
16</portlet>
17
18</portlet-app>


I am getting error notifiaction at <portlet> tag and in <init-param> tag can you pls help me on this ?
Amos Fong
RE: liferay-portlet-ext.xml being ignored
March 22, 2013 10:23 AM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

Hi Riya,

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