Fórum
Using velocity code we are unable to retrieve individual field of a structu
Rakesh Kusangi, modificado 11 Anos atrás.
Using velocity code we are unable to retrieve individual field of a structu
New Member Postagens: 2 Data de Entrada: 10/01/13 Postagens Recentes
Can anyone help me with retrieving individual field or attribute of a structure using velocity code?
Using the below mentioned snippet, I am able to pull the article content and its individual field.
<% JournalArticle journalArticle = null;
try {
journalArticle = JournalArticleLocalServiceUtil.getArticle(themeDisplay.getScopeGroupId(), "articlename");
} catch (com.liferay.portlet.journal.NoSuchArticleException e) {
// ignore
}
if (Validator.isNotNull(journalArticle)) {
String content = JournalArticleLocalServiceUtil.getArticleContent(
journalArticle,null, null, themeDisplay.getLanguageId(), themeDisplay);
if (Validator.isNotNull(content)) {
%>
I am looking out something similar through velocity.
Thanks in advance!
Using the below mentioned snippet, I am able to pull the article content and its individual field.
<% JournalArticle journalArticle = null;
try {
journalArticle = JournalArticleLocalServiceUtil.getArticle(themeDisplay.getScopeGroupId(), "articlename");
} catch (com.liferay.portlet.journal.NoSuchArticleException e) {
// ignore
}
if (Validator.isNotNull(journalArticle)) {
String content = JournalArticleLocalServiceUtil.getArticleContent(
journalArticle,null, null, themeDisplay.getLanguageId(), themeDisplay);
if (Validator.isNotNull(content)) {
%>
I am looking out something similar through velocity.
Thanks in advance!
Rakesh Kusangi, modificado 11 Anos atrás.
RE: Using velocity code we are unable to retrieve individual field of a str
New Member Postagens: 2 Data de Entrada: 10/01/13 Postagens Recentes
any help appreciated