open init_custom.vm of my theme I put:
#set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
#set ($myPortletId = "custom potlet id")
and now open your portal_normal.vm and past the following code
$theme.runtime($myPortletId, '', $velocityPortletPreferences.toString())
#set ($VOID = $velocityPortletPreferences.reset())
how to get your custom portlet id
For getting portlet id you need to look and feel option in portlet title bar setting
then go to advance styling there you get the portlet Id
just remove #p_p_id_ if it is default portlet
and remove #portlet_ if it is custom portlet
and for inserting the portlet in any portion on page
put $theme.runtime("<the id of the portlet>") in portal_normal.vm
for example
if u want to put sign-in portlet
its actual id is #p_p_id_58_
so do this.......
$theme.runtime("58")
similarly for custom
whose id is #portlet_allocation_WAR_allocationRuleportlet
$theme.runtime("allocation_WAR_allocationRuleportlet")
by doing this you can see the portlet on the page after theme deployment
No comments:
Post a Comment