tags:

views:

42

answers:

1

Hi,

Is it possible to add a portlet programatically? If yes, please help me to understand the steps for that

Regards Vishal G

A: 

Liferay CE comes with the "sevencogs-hook" that contains code to set up the demo content, e.g. the "Seven Cogs" virtual company used to demo a Liferay site. This sets up a complete site programmatically. You can read that code and learn how users and pages are created, portlets are added to pages and configured to show what they are supposed to show. More than that: It's running code that can easily be read and is - as side effect - a nice piece of documentation.

http://svn.liferay.com/repos/public/plugins/trunk/hooks/sevencogs-hook/

Login: "guest", no password

or download the source for the version you're referring to.

Olaf
Thanks Olaf..I will try it out