掲示板

liferay-portlet-ext.xml being ignored

12年前 に Marc Piparo によって更新されました。

liferay-portlet-ext.xml being ignored

Junior Member 投稿: 43 参加年月日: 11/03/14 最新の投稿
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
12年前 に Anil Sunkari によって更新されました。

RE: liferay-portlet-ext.xml being ignored

Expert 投稿: 427 参加年月日: 09/08/12 最新の投稿
Please check your logs while deploying & if possible mark it overhere.
thumbnail
12年前 に Amos Fong によって更新されました。

RE: liferay-portlet-ext.xml being ignored

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
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>
12年前 に Marc Piparo によって更新されました。

RE: liferay-portlet-ext.xml being ignored

Junior Member 投稿: 43 参加年月日: 11/03/14 最新の投稿
ah. that looks to have done the trick. was missing the <liferay-portlet-app> and doctype definition.
thanks!!!
thumbnail
11年前 に Riya M S によって更新されました。

RE: liferay-portlet-ext.xml being ignored

Junior Member 投稿: 45 参加年月日: 13/01/30 最新の投稿
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
11年前 に Amos Fong によって更新されました。

RE: liferay-portlet-ext.xml being ignored

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
Hi Riya,

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