Total Pageviews

Saturday, June 16, 2012

Adding portlets on page using JavaScript

This is gonna be a very small post, but trust me these two lines are amazing.
This code add portlet on the current page.

You just have to use it inside a javascript function, like:

All now neede is to envoke this function on click on a button with propert portletId, like:


and yes its done. Hope this will help.

Saturday, June 2, 2012

Creating User Page, Applying theme and Adding portlet to them

Creating User Page, Applying theme and Adding portlet to them

The following post tells you how to create a user page(layout), add portlets to them and apply some theme.

First of all you have to add the following properties in portal-ext.properties file, (I'm just filling example data, you can fill as per your requirements:) Now call the following function as per the implementation logic. Code is kinda self explanatory,a nd I've already put comments between them:

Hope this will help.