Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yegor Bondar
Add custom portlet to src of portal 6.0.6
September 2, 2011 9:11 AM
Answer

Yegor Bondar

Rank: New Member

Posts: 21

Join Date: August 23, 2011

Recent Posts

Good day!
I have some questions about deploy portal from "box".
How add custom portlet to src of portal than its compile and deploy with other portal portlets?
Where place programmatically creation of layouts and pages of portal?
David H Nebinger
RE: Add custom portlet to src of portal 6.0.6
September 2, 2011 9:25 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11295

Join Date: September 1, 2006

Recent Posts

Yegor, you really don't want to mess around w/ the Liferay portal source. Doing this will lock you into one specific version of Liferay or at least make upgrades very difficult.

Instead look into the plugin development. You can do themes, layouts, and portlets outside of the Liferay source and won't have any of these other issues.
Pranay R Patadiya
RE: Add custom portlet to src of portal 6.0.6
September 2, 2011 10:11 AM
Answer

Pranay R Patadiya

Rank: Regular Member

Posts: 181

Join Date: February 22, 2010

Recent Posts

Hi,
You should go with Plug In development, please refer bellow links for the same:
1) Liferay Plugin Guide
2) Liferay Plugin Blog

Let me know if you want anything more.

Thanks,
Pranay
Yegor Bondar
RE: Add custom portlet to src of portal 6.0.6
September 4, 2011 12:20 AM
Answer

Yegor Bondar

Rank: New Member

Posts: 21

Join Date: August 23, 2011

Recent Posts

I work with plugins and Liferay SDK and also with portal src.
But we should give projects to our customer. And customer doesn`t have SDK.
How auto deploy our portlets with portal from src of portal?
Sagar A Vyas
RE: Add custom portlet to src of portal 6.0.6
September 4, 2011 3:59 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 657

Join Date: April 17, 2009

Recent Posts

Yegor Bondar:
I work with plugins and Liferay SDK and also with portal src.
But we should give projects to our customer. And customer doesn`t have SDK.
How auto deploy our portlets with portal from src of portal?


Hi Yeugor,

Which application server uses your customer ?

You dont need to add your portlet in LIferay Portal SRC .
As David mention it would be not good practice to do same.

You can probably use hot deployment concept.

Thanks,
Sagar Vyas
Hitoshi Ozawa
RE: Add custom portlet to src of portal 6.0.6
September 4, 2011 5:16 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

You don't need SDK to deploy your portlet.
Keep Liferay shutdown when you deploy your portlet from source. This should create a *.war file in the Liferay deploy directory.
Just deploy this *.war file at your customer site. Liferay will hot deploy it if it's running or it will deploy it the next time Liferay is
startup if it is not running.
David H Nebinger
RE: Add custom portlet to src of portal 6.0.6
September 6, 2011 2:10 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11295

Join Date: September 1, 2006

Recent Posts

Yegor Bondar:
I work with plugins and Liferay SDK and also with portal src.
But we should give projects to our customer. And customer doesn`t have SDK.
How auto deploy our portlets with portal from src of portal?


When you build using the SDK, a war file will be created in the {SDK}/dist directory. That war file can be deployed to the customer's Liferay instance by dropping it into their {LIFERAY}/deploy folder.