掲示板

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

11年前 に Rakesh Kusangi によって更新されました。

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

New Member 投稿: 2 参加年月日: 13/01/10 最新の投稿
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!
11年前 に Rakesh Kusangi によって更新されました。

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

New Member 投稿: 2 参加年月日: 13/01/10 最新の投稿
any help appreciated