Embedding a Portlet in Theme :
Add the below code in Portal-Normal.vm
<div class="lang-bar">
$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
#set($sampleLanguageTranslatorPortletId = "languagetranslator_WAR_sampleportlet")
$theme.runtime($sampleLanguageTranslatorPortletId ,"", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
</div>
$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
#set($sampleLanguageTranslatorPortletId = "languagetranslator_WAR_sampleportlet")
$theme.runtime($sampleLanguageTranslatorPortletId ,"", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
</div>
languagetranslator_WAR_sampleportlet = portletId value get it from Database Portlet table
select * from Portlet.
No comments:
Post a Comment