留言板
Liferay 7 inserire custom portlet ad un Theme
Massimo Bevilacqua,修改在6 年前。
Liferay 7 inserire custom portlet ad un Theme
Regular Member 帖子: 210 加入日期: 16-12-27 最近的帖子
Ciao,
ho creato una portlet e se eseguo il deploy sul server funziona perfettamente.
Ora ho bisogno di inserirla all'interno di una theme personalizzato che ho creato,; ho provato questo:
Ma in pagina non vedo nulla e non ho errori.
Ho controllato in
Configuration -> Component -> MyPortlet -> Plugin ID
E ho usato questo ID come portletName (che é lo stesso che ho inserito nelle properties della mia classe java)
"javax.portlet.name=com_test_myPackage_MyPortletClassName"
Se provo ad usare questo:
portletName="com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet"
Funziona e riesco a vedere il selettore in pagina
Ho anche provato ad usare portletProviderClassName invece di portletName ma ricevo questo
"An app that can VIEW com_test_myPackage_MyPortletClassName belongs here. Please contact the portal administrator or install such an app from the Liferay Marketplace."
Qualcuno sa come risolvere?
ho creato una portlet e se eseguo il deploy sul server funziona perfettamente.
Ora ho bisogno di inserirla all'interno di una theme personalizzato che ho creato,; ho provato questo:
<#assign VOID = freeMarkerPortletPreferences.setValue("portletSetupPortletDecoratorId", "barebone") />
<@liferay_portlet["runtime"]
portletProviderAction=portletProviderAction.VIEW
defaultPreferences="${freeMarkerPortletPreferences}"
portletName="com_test_myPackage_MyPortletClassName"
/>
${freeMarkerPortletPreferences.reset()}
Ma in pagina non vedo nulla e non ho errori.
Ho controllato in
Configuration -> Component -> MyPortlet -> Plugin ID
E ho usato questo ID come portletName (che é lo stesso che ho inserito nelle properties della mia classe java)
"javax.portlet.name=com_test_myPackage_MyPortletClassName"
Se provo ad usare questo:
portletName="com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet"
Funziona e riesco a vedere il selettore in pagina
Ho anche provato ad usare portletProviderClassName invece di portletName ma ricevo questo
"An app that can VIEW com_test_myPackage_MyPortletClassName belongs here. Please contact the portal administrator or install such an app from the Liferay Marketplace."
Qualcuno sa come risolvere?
Andrew Jardine,修改在6 年前。
RE: Liferay 7 inserire custom portlet ad un Theme (答复)
Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
Just want to link this one to the other (english) thread in case the answer is found there: https://web.liferay.com/community/forums/-/message_boards/message/92773367