掲示板

How to add custom portlet jsp in portal_normal.vm

7年前 に Abutalib Shaikh によって更新されました。

How to add custom portlet jsp in portal_normal.vm

Junior Member 投稿: 36 参加年月日: 16/05/17 最新の投稿
Hello all ,

I want to customize docbar portlet .
so i create new navigation_docbar MVC portlet which contains "Product list in drop down"
- which i want to stick on every page
- want to include new portlet (custom portlet) "view.jsp" in "portal_normal.vm" ?

- but i am confuse how to add custom portlet jsp in portal_normal.vm
- please suggest me a way to achieve same ?

- or is there any another way to customize "docbar" portlet but
- how am set portlet class for "docbar" portlet which having id=145 ?
- i required portlet-class because i need to perform some action in that class
- and AJAX call also

- so please suggest me solution ....

Thank you in advance
thumbnail
7年前 に David H Nebinger によって更新されました。

RE: How to add custom portlet jsp in portal_normal.vm

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
Abutalib Shaikh:
- want to include new portlet (custom portlet) "view.jsp" in "portal_normal.vm" ?


You can't. Two different contexts, the portal_normal.vm is in a velocity templating engine and it will not know how to support a JSP page.

- but i am confuse how to add custom portlet jsp in portal_normal.vm


You are probably confused because it is not possible.

- how am set portlet class for "docbar" portlet which having id=145 ?


You can't change the class in the theme.

- so please suggest me solution ....


The only reason dockbar works is because it is an example of a portlet embedded in the theme. The dockbar portlet is a complete portlet on it's own and, if it wasn't in the theme, you would be able to put it on the page like any other portlet.

Your solution lies in the same technique. Build a portlet that works just the way you need it to and then finally go to the theme and embed it on the page.
7年前 に Abutalib Shaikh によって更新されました。

RE: How to add custom portlet jsp in portal_normal.vm

Junior Member 投稿: 36 参加年月日: 16/05/17 最新の投稿
Thank you David emoticon your solution like boon for me