Forums de discussion

how to call custom portlet in portal-normal.vm

shrikanth shrikanth, modifié il y a 9 années.

how to call custom portlet in portal-normal.vm

Regular Member Publications: 118 Date d'inscription: 11/12/13 Publications récentes
Dear Frds,
Iam new @liferay .......soo can u please help me.
I have one requirement,in Footer i want to call Custom portlet like i want to call lastupdated portlet in footer using portal-normal.vm .
So , can u please help how to do this.

Regards
Shrikanth
thumbnail
Manali Lalaji, modifié il y a 9 années.

RE: how to call custom portlet in portal-normal.vm

Expert Publications: 362 Date d'inscription: 09/03/10 Publications récentes
Hi,

If you want to embed portlet in liferay theme :

$theme.runtime($myPortletId, $queryString, $velocityPortletPreferences.toString())

Also refer : Liferay Wiki , Blog

HTH!
shrikanth shrikanth, modifié il y a 9 années.

RE: how to call custom portlet in portal-normal.vm

Regular Member Publications: 118 Date d'inscription: 11/12/13 Publications récentes
Dear mam,
Can i get my view.jsp from Abc-portlet .........using this $theme.runtime($myPortletId, $queryString, $velocityPortletPreferences.toString())

Regards
Shrikanth
karthik reddy, modifié il y a 9 années.

RE: how to call custom portlet in portal-normal.vm

Junior Member Publications: 60 Date d'inscription: 08/04/13 Publications récentes
Hi try this,

#set ($VOID = $velocityPortletPreferences.setValue('portletSetupShowBorders', 'false'))
#set ($portlet_id = 'Mention ID here ')
#set ($my_portlet_id = "${portlet_id}_INSTANCE_1234")
$theme.runtime($my_portlet_id, "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()

ID--->Goto control panel-->portal-->Plugins Configuration-->Click on your portlet-->Plugin id is available put it for id
thumbnail
Manali Lalaji, modifié il y a 9 années.

RE: how to call custom portlet in portal-normal.vm

Expert Publications: 362 Date d'inscription: 09/03/10 Publications récentes
shrikanth shrikanth:
Dear mam,
Can i get my view.jsp from Abc-portlet .........using this $theme.runtime($myPortletId, $queryString, $velocityPortletPreferences.toString())

Regards
Shrikanth


Hi,

What exactly you mean by getting view.jsp from portlet? Can you clarify more on that?