Forums

Home » Liferay Portal » English » x. Miscellaneous

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rakesh Kusangi
Using velocity code we are unable to retrieve individual field of a structu
January 10, 2013 4:16 AM
Answer

Rakesh Kusangi

Rank: New Member

Posts: 2

Join Date: January 10, 2013

Recent Posts

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
January 11, 2013 1:15 AM
Answer

Rakesh Kusangi

Rank: New Member

Posts: 2

Join Date: January 10, 2013

Recent Posts

any help appreciated