Hi guys
Most of the time I need to embed a Web Content on the theme that I develop.
To solve this I usually insert a Web Content Portlet using the following code:
#set ($VOID = $velocityPortletPreferences.setValue('groupId', $themeDisplay.getCompanyGroupId().toString()))
#set ($VOID = $velocityPortletPreferences.setValue('articleId', $webContentID))
#set ($VOID = $velocityPortletPreferences.setValue('portletSetupShowBorders', 'false'))
#set ($portlet_id = '56')
#set ($my_portlet_id = "${portlet_id}_INSTANCE_ABC1")
$theme.runtime($my_portlet_id, "", $velocityPortletPreferences.toString())
$journalContentUtil.getContent( $themeDisplay.getCompanyGroupId(), $webContentID, null, $locale.toString(), $themeDisplay )

