Foren
Web Content calling in Portlet
Yogesh Kumar, geändert vor 8 Jahren.
Web Content calling in Portlet
New Member Beiträge: 9 Beitrittsdatum: 03.06.13 Neueste Beiträge
Hi,
I am getting error when second time hitting the url when trying to get web content in portlet. Below is the code.
<liferay-ui:journal-article articleId="14720" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
I am getting error when second time hitting the url when trying to get web content in portlet. Below is the code.
<liferay-ui:journal-article articleId="14720" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
David H Nebinger, geändert vor 8 Jahren.
RE: Web Content calling in Portlet
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Usually one has to be much more descriptive with what is going on if you want an answer.
It's like saying "hey, there's something wrong with my car" and expecting someone to diagnose and fix using no details.
It's like saying "hey, there's something wrong with my car" and expecting someone to diagnose and fix using no details.
Yogesh Kumar, geändert vor 8 Jahren.
RE: Web Content calling in Portlet
New Member Beiträge: 9 Beitrittsdatum: 03.06.13 Neueste Beiträge
Hi David,
Getting error in jsp no quot is found when second time accessing the portlet.
<liferay-ui:journal-article articleId="14720" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
Getting error in jsp no quot is found when second time accessing the portlet.
<liferay-ui:journal-article articleId="14720" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
Vishal Kumar, geändert vor 8 Jahren.
RE: Web Content calling in Portlet
Regular Member Beiträge: 198 Beitrittsdatum: 12.12.12 Neueste Beiträge
Can you please provide code snippet for adding portlet in webcontent.
Yogesh Kumar, geändert vor 8 Jahren.
RE: Web Content calling in Portlet
New Member Beiträge: 9 Beitrittsdatum: 03.06.13 Neueste Beiträge
Hi Vishal,
Below the code when calling webcontent in portlet.
<liferay-ui:journal-article articleId="14720" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
Below the code when calling webcontent in portlet.
<liferay-ui:journal-article articleId="14720" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
Vishal Kumar, geändert vor 8 Jahren.
RE: Web Content calling in Portlet
Regular Member Beiträge: 198 Beitrittsdatum: 12.12.12 Neueste Beiträge
Are you using custom structure and template?
May this will help : https://www.liferay.com/community/forums/-/message_boards/message/22975626
May this will help : https://www.liferay.com/community/forums/-/message_boards/message/22975626
Manikantha Rajamani, geändert vor 8 Jahren.
RE: Web Content calling in Portlet
Expert Beiträge: 258 Beitrittsdatum: 25.03.14 Neueste Beiträge
Hi,
Foloowing code will help you to embeded the web content into portlet
<%
ThemeDisplay themeDisplay=(ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
%>
<liferay-ui:journal-article articleId="EMBEDED_WEBCONTENT" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
create your own article id by making following in portlet-ext.xml
journal.article.force.autogenerate.id=false
and create your own id and pass that id in jsp page
Reagrds
Manikantha R
Foloowing code will help you to embeded the web content into portlet
<%
ThemeDisplay themeDisplay=(ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
%>
<liferay-ui:journal-article articleId="EMBEDED_WEBCONTENT" groupId="<%=themeDisplay.getScopeGroupId() %>"/>
create your own article id by making following in portlet-ext.xml
journal.article.force.autogenerate.id=false
and create your own id and pass that id in jsp page
Reagrds
Manikantha R