Foros de discusión

Using velocity code we are unable to retrieve individual field of a structu

Rakesh Kusangi, modificado hace 11 años.

Using velocity code we are unable to retrieve individual field of a structu

New Member Mensajes: 2 Fecha de incorporación: 10/01/13 Mensajes recientes
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!
Rakesh Kusangi, modificado hace 11 años.

RE: Using velocity code we are unable to retrieve individual field of a str

New Member Mensajes: 2 Fecha de incorporación: 10/01/13 Mensajes recientes
any help appreciated