Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Rakesh Kusangi
Using velocity code we are unable to retrieve individual field of a structu
10 de Janeiro de 2013 04:16
Resposta

Rakesh Kusangi

Ranking: New Member

Mensagens: 2

Data de entrada: 10 de Janeiro de 2013

Mensagens 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!
Rakesh Kusangi
RE: Using velocity code we are unable to retrieve individual field of a str
11 de Janeiro de 2013 01:15
Resposta

Rakesh Kusangi

Ranking: New Member

Mensagens: 2

Data de entrada: 10 de Janeiro de 2013

Mensagens recentes

any help appreciated